Make Quill instances reconfigurable #4397
singintime
started this conversation in
Ideas
Replies: 2 comments
-
After a more accurate search, it looks like there's a similar issue already open: #4234 |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think that older issue is somewhat related, but I really like this approach of providing the ability to tear down an instance via |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Motivation
It's not currently possible to reconfigure an already existing instance of Quill.
The only way to change the editor's configuration is to create an entirely new instance and replace the old one. This operation has several undesirable side effects:
aria-live
updates.The latter case is exactly what happens in Miro. The objects in Miro boards use the Quill editor to provide rich text editing capabilities. Every object type has a different configuration of the editor, so every time a new object type is selected the (already focused) Quill's root on the page is replaced. The triggered focus event silences a very important
aria-live
update that provides detailed information about the selected object on the board.Recent updates in Google Chrome made this issue even worse. Focus events could once be silenced by setting the
aria-hidden
attribute on the Quill editor, but now they can't anymore. On top of that, the latest versions of Apple VoiceOver don't allow live region updates to interrupt focus announcements. This unfortunate combination entirely breaks the user experience of Chrome + VoiceOver screen reader users.Proposed changes
Making Quill instances reconfigurable, by:
detach
method to all Quill components and modules that register event subscriptions,configure
method in the main Quill class to apply a new configuration to the editor.Beta Was this translation helpful? Give feedback.
All reactions