From: Taeyun An Date: Mon, 3 Jun 2013 02:34:55 +0000 (+0900) Subject: Remove tag if when paste x-elementary-markup type of text X-Git-Tag: submit/tizen_2.2/20130714.131554~26 X-Git-Url: http://review.tizen.org/git/?p=framework%2Fweb%2Fwebkit-efl.git;a=commitdiff_plain;h=c62ef68cfb55a12641362cfa87249a3445822fbb Remove tag if when paste x-elementary-markup type of text [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 --- diff --git a/Source/WebKit2/UIProcess/API/efl/tizen/ClipboardHelper.cpp b/Source/WebKit2/UIProcess/API/efl/tizen/ClipboardHelper.cpp index 4f469af..e23264a 100755 --- a/Source/WebKit2/UIProcess/API/efl/tizen/ClipboardHelper.cpp +++ b/Source/WebKit2/UIProcess/API/efl/tizen/ClipboardHelper.cpp @@ -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; }