Paste Markup type of clipboard item to Plaintext type
authorTaeyun An <ty.an@samsung.com>
Mon, 8 Apr 2013 10:45:04 +0000 (19:45 +0900)
committerGerrit Code Review <gerrit2@kim11>
Mon, 8 Apr 2013 13:44:18 +0000 (22:44 +0900)
[Title] Paste Markup type of clipboard item to Plaintext type
[Issue#] N/A
[Problem] When pasting something at editfield from copy the Markup type of text
[Cause] Markup type of item is pasted by HTML type
[Solution] Paste Markup type of clipboard item to Plaintext type

Change-Id: I144751ffefd5f67439466380032765d08ee4893d

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

index f649f65..38f7f23 100755 (executable)
@@ -778,10 +778,10 @@ void ClipboardHelper::pasteClipboardLastItem(bool isContentEditable)
 
     switch(format) {
     case ELM_SEL_FORMAT_TEXT:
+    case ELM_SEL_FORMAT_MARKUP:
         page()->didSelectPasteMenuFromContextMenu(clipboardData, String("PlainText"));
         break;
     case ELM_SEL_FORMAT_HTML:
-    case ELM_SEL_FORMAT_MARKUP:
         page()->didSelectPasteMenuFromContextMenu(clipboardData, String("Markup"));
         break;
     case ELM_SEL_FORMAT_IMAGE: