-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Access Quill API when using the editor #522
Comments
I see but you can already customize toolbar; <p-editor [(ngModel)]="text2" [style]="{'height':'320px'}">
<header>
<span class="ql-formats">
<button class="ql-bold"></button>
<button class="ql-italic"></button>
<button class="ql-underline"></button>
</span>
</header>
</p-editor> |
It is very hard to customise the toolbar with the version of Quill being used. For instance; it is very hard to add the bullets (ql-list) button. As it uses SVG to render itself making for a very ugly template. So if I wanted to keep the current toolbar + a save button the template would be huge. So I figured API access would be easier. |
Having access to the editor would be a nice addition. I would like to call its API, but now it's impossible. |
It is possible to get a reference to the
|
Added onInit that passes the quill instance and also getQuill method. |
Has someone try to add the formula format when creating the editor with a custom toolbar? |
@gatapia could you please give an example how do you register e.g. custom formats? Issue for me is that editor is already created at moment when |
Technical Policy Change Report - minor fixes
It would be great if we could access the Quill api when using the Editor. This would allow adding custom commands to the quill toolbar (and other good things).
Perhaps a simple (oninit) event listener that gets the Quill instance?
The text was updated successfully, but these errors were encountered: