Closed Bug 1919927 Opened 1 year ago Closed 1 year ago

Implement `contenteditable=plaintext-only` outside the editor module

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(1 file)

First, we need a pref to enable it and new (optional) handler of contenteditable attribute changes under dom/.

It requires a lot of changes in the editor module, and the layout module may
need read-write-plaintext-only and user-modify: read-write-plaintext-only.
When we work on the modules, we need the basic support under dom/. This
patch adds plaintext-only support only when the new pref is enabled.

Once the pref is enabled, the following failures will be fixed:

FYI: Element::IsContentEditablePlainTextOnly() is useful for HTMLEditor
to check whether active editing host is so or not. Therefore, I'd like to
add it even though there is no user of it.

Attachment #9426062 - Attachment description: Bug 1919927 - Implement `contenteditable="plaintext-only" in the DOM module r=smaug! → Bug 1919927 - Implement `contenteditable="plaintext-only"` in the DOM module r=smaug!
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/0f470e1a67af Implement `contenteditable="plaintext-only"` in the DOM module r=smaug
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
Regressions: 1925078
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: