-
-
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
Should model.Writer#setTextData() be removed? #4316
Comments
OK, but this can be done only in a veeeery specific situation – on detached nodes. Am I right? You must not do such changes on text nodes which were already inserted into the document or are in the graveyard. |
This is the view writer, and I believe it should work allways. You should usually not change view without changes in the model, but it is a different topic. |
It's the view writer? In upcast converters? I'm a bit lost. I was talking about the model writer which also has the |
Ach, I agree then. Model writer should not have this method. |
Other: Removed the unnecesary `model.Writer#setTextData()` method. Closes #1363.
Internal: Aligned to the changes in engine (removed both `writer.setTextData()` methods). See ckeditor/ckeditor5-engine#1363.
I can't see it used... and it shouldn't be used at all because it changes the text node's data directly:
The text was updated successfully, but these errors were encountered: