Re: [w3c/editing] Question About Using EditContext with WYSIWYG Editors (Issue #520)

karintou8710 left a comment (w3c/editing#520)

@johanneswilm 

Thanks for the reply!

Since WYSIWYG editors rely on their own structures (like DOM or JSON), straightforward mapping to the EditContext text buffer seems difficult.

For example, inline styles like bolding seem easy enough to reflect in the View by tracking the selection range within the text buffer. However, it doesn't seem possible to represent block elements like Headings inside the text buffer itself.

Do you have any sample code for implementing this kind of WYSIWYG editor using EditContext?
So, is the idea to have a separate EditContext for each block, and handle the caret movement between them on the application side?

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

Message ID: <w3c/editing/issues/520/3686569075@github.com>

Received on Tuesday, 23 December 2025 13:02:57 UTC