void ClipboardHelper::openClipboardWindow(bool isContentRichlyEditable)
{
- clearClipboardSelectionHandler();
+ if (!isClipboardWindowOpened())
+ clearClipboardSelectionHandler();
initializeAtomList();
if (isContentRichlyEditable)
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;
}
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:
void ClipboardHelper::updateClipboardWindowState(Ecore_X_Event_Window_Property* ev)
{
- Ecore_X_Window zone = ecore_x_e_illume_zone_get(ev->win);
Ecore_X_Illume_Clipboard_State state = ecore_x_e_illume_clipboard_state_get(ev->win);
if (state == ECORE_X_ILLUME_CLIPBOARD_STATE_UNKNOWN)
else if (state == ECORE_X_ILLUME_CLIPBOARD_STATE_ON)
m_clipboardWindowOpened = true;
}
-
#endif // TIZEN_WEBKIT2_CONTEXT_MENU_CLIPBOARD
}// namespace WebKit