Make `HTMLEditor::OnEndHandlingTopLevelEditSubActionInternal` stop joining adjacent `Text` nodes
Categories
(Core :: DOM: Editor, task)
Tracking
()
People
(Reporter: masayuki, Assigned: masayuki)
References
(Blocks 1 open bug)
Details
When inserting a line break in preformatted text, Chrome inserts new Text
node which contains only \n
. Although when you type text at an empty line, text is inserted to the \n
only text node, but this approach must be reasonable to keep Text
nodes smaller as far as possible and keep faster updating of the data. However, currently, we join adjacent Text
nodes in OnEndHandlingTopLevelEditSubActionInternal
at end of handling the topmost edit subaction except when inserting text. Therefore, the split Text
nodes may be joined at deletion, etc. So, we cannot follow Chrome's behavior with keeping this post-processing.
I think that we can simply stop doing this in the post-processing because our handlers do not assume there is only one Text
node at each editing target. However, I guess we need to clean it up empty Text
nodes for saving the footprint.
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Updated•4 months ago
|
Description
•