Re: [w3c/editing] Update to a spec draft document (#251)

@gked commented on this pull request.



> +            </ul>
+        </p>
+        <p class="note">
+            Note that this specification does not have a shortcut to disable all editing UI.  Authors should consider using a <code>textarea</code> or <code>contenteditable="plaintext-only"</code> for this purpose.
+        </p>
+    </section>
+    <section id="element-contenteditable-mixin">
+        <h2>Extensions to the <dfn>ElementContentEditable</dfn> mixin</h2>
+        <pre class="idl">
+            [Exposed=Window]
+            interface ElementContentEditable {
+                [SameObject, PutForwards=value] readonly attribute DOMTokenList contentEditableDisabled;
+            };
+        </pre>
+        <p>
+            The <code>contentEditableDisabled</code> WebIDL property reflects the contenteditable-disabled DOM content attribute.

> Nice work @gked and @BoCupp-Microsoft ! I noticed you removed `supported`. This was something we had added after discussing whether to blacklist or to whitelist to kind of allow whitelisting anyway while giving a preference for blacklisting.
> 
> The reason this is important to JS editors is that it took several of the JS editor companies several months to discover that the Mac touch bar had been launched. During this time, their users would use the buttons of this bar and nothing would happen in the users editors or even worse - the editors were breaking. The same can happen again with new devices launches with new versions of browsers and operating systems that not every development team is aware of immediately. For that reason there was a demand for a way to query all the supported options that then can be disabled subsequently.
> 
> Maybe we need to open a ticket about this?

Sounds good, I created an [issue ](https://github.com/w3c/editing/issues/252)and tagged with Agenda+ to be discussed tomorrow.

-- 
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/pull/251#discussion_r421870079

Received on Friday, 8 May 2020 00:32:30 UTC