Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quill settings and AP are not exposed #3

Open
marcelklehr opened this issue Sep 23, 2016 · 1 comment
Open

Quill settings and AP are not exposed #3

marcelklehr opened this issue Sep 23, 2016 · 1 comment

Comments

@marcelklehr
Copy link

Hi,

According to the docs the only way to interface with quill is to create an instance and read the content property. This is a bit thin.

I would like to supply quill with config options using attributes, get the documented events and methods (or at least access to the original Quill object).

@chuckh
Copy link
Owner

chuckh commented Sep 27, 2016

You should be able to get to the original Quill object by doing this.$.demo1.quill. Assuming you polymer-quill id is demo1.

<polymer-quill id="demo1"
       content='{"ops":[{"insert":"Hello World! - Store as Delta - "},{"attributes":{"link":"//proplanr.com"},"insert":"proplanr.com"},{"attributes":{"header":2},"insert":"\n"}]}'
      store-as="delta">
</polymer-quill>

I have not had any luck yet passing options using attributes. That is why I created toolbar options of full and standard to at least give two choices. I am open to suggestions on how to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants