Re: [w3c/editing] Should EditContext be associated with a Node representing the "view"? (#300)

That's good suggestion! currently we are using element.editContext to associate the element and the editContext (see exapmle 1 in the updated [Explainer](https://github.com/w3c/editing/blob/gh-pages/docs/EditContext/explainer.md)) and we can update #viewElement (read-only) when the association is created/removed.

We also plan to support many to one mapping (multiple elements can associate same editContext). The detail design is still in progress and I think this new viewElement attribute can be added when we come to that task

-- 
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/300#issuecomment-840604004

Received on Thursday, 13 May 2021 14:36:27 UTC