You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess that if the element whose contenteditable is "false" has an EditContext, it should be editable because if only the element has focus, it should be editable.
So in my understanding an element can be editable if:
designMode is set to on
contenteditable is set to true
an EditContext is associated
an ancestor is editable and not in designMode and not associated with an EditContext and contenteditable is set to "false"
I.e., an element in an editing host can be non-editable if and only if:
not in designMode
not associated with an EditContext
contenteditable is set to "false"
or a descendant of the non-editable element and is not an editing host
This description matches my understanding of things should work. We do still need to discuss the designMode question in #74.
The example in this issue shows a lot of the interesting cases: #53
We also discussed in #38 the question of what happens if contenteditable=true and EditContext are set on the same element. The decision at the time was that the EditContext behavior wins over the contenteditable behavior. I think that should also be the case for contenteditable=false, so if contenteditable=false and EditContext are set on the same element, the element is editable and the contenteditable=false is ignored.
https://w3c.github.io/edit-context/#edit-context-differences
I guess that if the element whose
contenteditable
is"false"
has anEditContext
, it should be editable because if only the element has focus, it should be editable.So in my understanding an element can be editable if:
designMode
is set toon
contenteditable
is set totrue
EditContext
is associateddesignMode
and not associated with anEditContext
andcontenteditable
is set to"false"
I.e., an element in an editing host can be non-editable if and only if:
designMode
EditContext
contenteditable
is set to"false"
Cc: @dandclark
The text was updated successfully, but these errors were encountered: