Remove tag if when paste x-elementary-markup type of text
authorTaeyun An <ty.an@samsung.com>
Mon, 3 Jun 2013 02:34:55 +0000 (11:34 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Wed, 10 Jul 2013 03:04:24 +0000 (03:04 +0000)
[Title] Remove tag if when paste x-elementary-markup type of text
[Issue#] P130530-0290
[Problem] Tags are inserted when paste copied text from calculator text in webview editable content.
[Cause] x-elementary-markup type should tag be removed.
[Solution] Remove tag using evas_textblock_text_markup_to_utf8() API

Change-Id: I7f530a6f39b05538bfdb301d8f3662155dfb3bee

Source/WebKit2/UIProcess/API/efl/tizen/ClipboardHelper.cpp

index 4f469af..e23264a 100755 (executable)
@@ -751,6 +751,9 @@ bool ClipboardHelper::retrieveClipboardItem(int index, int* format, String* pDat
     else
         return false;
 
+    if (dataType == ecore_x_atom_get("application/x-elementary-markup"))
+        *pData = String::fromUTF8(evas_textblock_text_markup_to_utf8(NULL, pData->utf8().data()));
+
     return true;
 }