gecko-dev/editor
Masayuki Nakano 7e9bbe23c8 Bug 1920646 - part 1: Make HTMLEditor paste/drop things as plaintext when contenteditable=plaintext-only r=m_kato
Chrome sets `beforeinput.data` instead of `beforeinput.dataTransfer`, but
Input Events Level 2 spec defines that browsers should set `dataTransfer` when
**contenteditable** [1].  Therefore, the new WPT expects `dataTransfer`.

However, it's unclear that the `dataTransfer` should have `text/html` or only
`text/plain`.  From web apps point of view, `text/html` data may make them
serialize the rich text format to plaintext without any dependencies of browsers
and OS.  On the other hand, they cannot distinguish whether the user tries to
paste with or without formatting when `contenteditable=true`.  Therefore, I
filed a spec issue for this.  We need to be back later about this issue.

1. https://w3c.github.io/input-events/#overview
2. https://github.com/w3c/input-events/issues/162

Differential Revision: https://phabricator.services.mozilla.com/D223908
2024-10-02 21:42:09 +00:00
..
composer
docs
libeditor Bug 1920646 - part 1: Make HTMLEditor paste/drop things as plaintext when contenteditable=plaintext-only r=m_kato 2024-10-02 21:42:09 +00:00
reftests
spellchecker
txmgr
AsyncSpellCheckTestHelper.sys.mjs
moz.build
nsIDocumentStateListener.idl
nsIEditActionListener.idl
nsIEditor.idl Bug 1809713 - Use ClipboardType in editor. r=masayuki 2024-07-29 11:52:33 +00:00
nsIEditorMailSupport.idl
nsIEditorSpellCheck.idl
nsIHTMLAbsPosEditor.idl Bug 1920647 - part 1: Make HTMLEditor won't show Gecko specific editing UI in contenteditable=plaintext-only r=m_kato 2024-10-01 04:21:54 +00:00
nsIHTMLEditor.idl
nsIHTMLInlineTableEditor.idl Bug 1920647 - part 1: Make HTMLEditor won't show Gecko specific editing UI in contenteditable=plaintext-only r=m_kato 2024-10-01 04:21:54 +00:00
nsIHTMLObjectResizer.idl Bug 1920647 - part 1: Make HTMLEditor won't show Gecko specific editing UI in contenteditable=plaintext-only r=m_kato 2024-10-01 04:21:54 +00:00
nsITableEditor.idl