[Webkit-unassigned] [Bug 19893] event.(dataTransfer|clipboardData).getData('text/html') (onpaste, ondrop)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 18 15:28:24 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=19893





--- Comment #7 from Julie Parent <jparent at google.com>  2010-03-18 15:28:24 PST ---
Tony - Nearly every product team at Google that uses rich text has asked for
this.  They currently implement it in a number of hacky ways, like putting the
user's cursor in another contentEditable region so the paste goes there, then
grabbing those contents, sanitizing them, and inserting back into the original
element.  Or letting the paste go through, and processing the changes
afterwards, which can make the contents change out from under the user.

The use cases is to be able to change the pasted contents before it is pasted
into the final destination, for any number of reasons: some want to strip out
certain types of content (for example, they don't want to allow images in their
rich text region), others want to clean up the HTML (for example, convert
<strong> to <b> because execCommand('bold') can't unbold <strong> tags).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list