-
-
Notifications
You must be signed in to change notification settings - Fork 264
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 remove a tabindex from editor toolbar #521
Comments
sorry i do not understand your problem. the first span has tabindex="-1", what do you want to achieve? Edit: the tab-index is automatically set by quilljs, why you want to break accessibility |
Thanks for Replying, kindly suggest. |
okay i only pass the custom toolbar to quilljs and quilljs does the magic. As a little hacky workaround, just remove the tabIndex attribute after editor is initialised. And check this: seems like you can remove keyboard bindings from the editor. |
"As a little hacky workaround, just remove the tabIndex attribute after editor is initialised." "seems like you can remove keyboard bindings from the editor. Please suggest. |
-->You mean to say onEditorCreated event i can do this. -->Does this works for toolbar or editor box? |
Thanks, Thanks again. |
any updates? |
editorCreated(event) Yes, this works for me |
please never use jquery... anymore just plain js you can grab the editor from the event data passed to the editorCreated function. get the toolbar module and the element. const formatElements = toolbarElement.querySelectorAll('your css selector here')
formatElements.forEach((formatElement) => // set tabIndex) |
I can remove some of the
Update:
|
I am facing problem to set the tabindex=-1 for toolbar options.
where i observed that it doesn't remove tabindex from toolbar
please help me with possible solution for above scenario.
The text was updated successfully, but these errors were encountered: