Re: [w3c/editing] When an 'insertHTML' command should be applied as sibling or child of a styled 'span' element ? (#191)

See also [this explanation](https://github.com/ckeditor/ckeditor5/issues/1663#issuecomment-481690751) of how the CKEditor Framework has implemented the different behavior that content typed at the end of links is treated differently than content inserted at the end of bold/italic. 

In CKEditor, just for links, it defined two caret positions - just outside and just inside the styled inline node - whereas usually for inline content there would just be one and the styling would automatically be inherited from the node to the left of the caret. 

This is different from the ProseMirror framework that I referenced earlier, in which there is always just one caret position at the start/end of inline styled nodes, and the schema decides whether a specific type of styling is applied when new inline content is inserted at the right-hand end.

Both frameworks have come up with valid solutions. It shows that it's not really up to browsers to make the final decision of how the DOM should be updated.  

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/191#issuecomment-481702902

Received on Wednesday, 10 April 2019 14:00:03 UTC