-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
custom button in toolbar and custom handler: unable to connect together #1852
Comments
that is a good question. never did it. maybe you find helpful issues at the quilljs repo for it? Or you can check how other formats are build like the image/link module/format? |
Thanks for you reply, i already checked quilljs repo but i will try again, just to be sure to not lose everything useful. Over this, i checked also format builds and I'm almost sure that it is correct: i build it based on other quilljs modules. Not 100% sure... but 99% . I will check it again during the next steps. Thanks again for you precious time and your precious contribute to the community with this plugin. |
if i follow the quill docs your handler needs to be added under https://quilljs.com/docs/modules/toolbar#handlers so if your format/buttom class name "ql-attachment" {
toolbar: {
container: "[quill-editor-toolbar]",
handlers: {
attachment: () => {}
}
}
} |
Any updates |
Hi,
i'm working on a project (Angular 16) and with ngx-quill i'd like to have a function to attach file and render its clickable link in content.
I created a custom handler to manage file upload to backend, but right now i cannot attach it to a custom button in toolbar. I read everything among previous issues and ngx-quill-sample repo, but nothing get me pointed to a solution.
To be more precise, my app.module.ts contains this:
this is my custom toolbar:
(this also reporting "quill:toolbar ignoring attaching to nonexistent format attachment" in console, but as i read i understood that this is referred to the fact that the button is non-standard for quill)
this is the wrapper of the toolbar:
that get initiated with:
and the relative bootstrapping method, that is correctly triggering:
Any suggest that can point me to the solution?
Thanks
The text was updated successfully, but these errors were encountered: