-
-
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
Always render text nodes via 'renderer._updateText' #4353
Comments
One important think I just realised. When talking about benefits of this improvement:
I have only checked how |
It could be implemented this way (in const { structureUpdates, textNodeUpdates } = this._diffChildren( viewElement, inlineFillerPosition );
|
Another idea is to enhance how we test the renderer. The This will become especially useful once |
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it). |
Extracted from https://github.com/ckeditor/ckeditor5-engine/issues/1417#issuecomment-389191257.
The simplest case to check this behaviour:
<p>Paragrap[h]</p>
.Paragraph is marked to update in the
renderer
andrenderer._updateChildren
replaces the whole text node with the new one (containing modified text) - no matter how long text is, so it happens also for very long paragraphs. Since we have introduced smart text nodes updates (#3703) it will be nice to utilize it in such cases too.The main benefit should be visible during composition with collaboration. That's the reason I mentioned paragraph length. Having a long one may result in a few people composing inside it at once which will break quite quickly.
There are also similar cases (like bolding part of the text) which also may utilize smart text nodes updates. Case with bold is already described in the linked issue.
I'm not sure if this issue should be solved by the
renderer
itself or if it would be possible to adjust the type of elements which are marked to update in aView
somewhere.The text was updated successfully, but these errors were encountered: