-
Notifications
You must be signed in to change notification settings - Fork 19
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
how to use/import DynamicQuillTools in angular? #1
Comments
Please elaborate. I don't know what you mean. |
i want to implement your DynamicQuillTools to bellow code but not able to configure...
or how to get/set html contents to quill object like quill-editor |
`this.quill = new Quill('#myEditor', {
above code is working fine but not able to get/set html contents from/to editor |
If you are using ngx-quill, then you need to get a reference to the quill object. The following is the entire code for running DynamicQuillTools with ngx-quill. Download and either serve DynamicQuillTools.js as an asset(include script in index.html) or
Declare object in your component to avoid build errors
Get reference of QuillEditorComponent from the dom
Attach your custom dropdown when the editor is created.
Also, as a side note, if you are using reactive forms the form will not be updated with the new value when any item from the dropdown is selected. To work around that you have to set the value of the form yourself on the onContentChanged event(on the quill-editor component).
|
Thanks for your short guide, it pointed me in the right direction. Here are a couple of minor improvements which works with killercodemonkey/ngx-quill First of, you can pass the editor in the onEditorCreated event like this: You can then access the editor inside the scope of the method by passing it like so:
|
Hello Sir,
how to use/import DynamicQuillTools in angular? please help me out
The text was updated successfully, but these errors were encountered: