From c62ef68cfb55a12641362cfa87249a3445822fbb Mon Sep 17 00:00:00 2001 From: Taeyun An Date: Mon, 3 Jun 2013 11:34:55 +0900 Subject: [PATCH] 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 --- Source/WebKit2/UIProcess/API/efl/tizen/ClipboardHelper.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.7.4