Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1920646 - part 1: Make
HTMLEditor
paste/drop things as plaintex…
…t 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. w3c/input-events#162 Differential Revision: https://phabricator.services.mozilla.com/D223908 UltraBlame original commit: 2e3f866560e2c750fe1e4469b81d89f10bffc6a1
- Loading branch information