W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2014

Re: [clipboard] Add RTF to the "mandatory data types" list?

From: Karl Dubost <karl@la-grange.net>
Date: Wed, 20 Aug 2014 12:17:07 +0900
Cc: "James M. Greene" <james.m.greene@gmail.com>, public-webapps <public-webapps@w3.org>
Message-Id: <0DD3A61E-C3F2-4D8C-8CC0-5F7A878B6EFD@la-grange.net>
To: "Hallvord R. M. Steen" <hsteen@mozilla.com>

Le 19 août 2014 à 19:36, Hallvord R. M. Steen <hsteen@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?


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
* 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 🐄
Received on Wednesday, 20 August 2014 03:17:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:26 UTC