Summary: Support new `contenteditable` value which is `plaintext-only`.
It disallows users to edit style and stops `execCommand` with styling
commands like `"bold"` working.
Bugs: https://bugzilla.mozilla.org/show_bug.cgi?id=1922723
Specification:
https://html.spec.whatwg.org/multipage/interaction.html#attr-contenteditable
Platform coverage: All platforms
DevTools bug: N/A
Other browsers: Chrome and Safari already support this. However, Chrome
override the `white-space` property of
`*[contenteditable=plaintext-only]` to make the editor always work with
preformatted text. We should follow Safari's behavior.
web-platform-tests: There was no tests. I'm adding basic tests into
`editing/plaintext-only` and this feature is enabled in our CI to run
the tests under this directory.
--
Masayuki Nakano <[email protected]>
Working on DOM, Events, editor and IME handling for Gecko
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/587f3eda-4366-4579-93af-cd2336c05427%40d-toybox.com.