-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
TextTransformation creates 30+ instances of TextWatcher #6020
Comments
cc @jodator |
I'm thinking about something like this:
Which means that the return value of |
Yeah, I was worried about that and probably left for next step which supposed to be opening the API.
The other things is that we could rethink this watcher API and how the test callbacks are registered but passing stuff in the data is OK. |
Other: Run only one instance of the `TextWatcher` for all text transformations. Closes ckeditor/ckeditor5#6020.
TextTransformation
creates a newTextWatcher
instance for every configured transformation. This is completely non-optimal. We should have oneTextWatcher
and check all transformations in it. And then react tomatchetd:data
and check whcih transformation we matched.If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: