Le 19 août 2014 à 19:36, Hallvord R. M. Steen <hst...@mozilla.com> a écrit :
> If there's RTF on the clipboard and you try pasting into a rich text editing 
> element, does any browser convert RTF to HTML to preserve the formatting?

On MacOSX

Test 1: 
Copy styled text with a link in a Web page (grey and pink text, black 
background, Big size) into an RTF editor (TextEdit).
* Safari  -> TextEdit: color, size, position and links preserved
* Firefox -> TextEdit: only size and links are preserved

Test 2:
Copy styled text from an RTF editor to content editable form
http://codepen.io/matt-west/full/gtruC
* TextEdit -> Safari: Everything is preserved
* TextEdit -> Firefox: Nothing is preserved, just the text.


Checking by inspecting the DOM content in the form in Safari:

<p style="margin: 0px 0px 10px; font-size: 34px; line-height: normal; 
font-family: Times; color: rgb(225, 44, 155);">foobar</p>


-- 
Karl Dubost 🐄
http://www.la-grange.net/karl/


Reply via email to