예제 #1
0
파일: Editor.cpp 프로젝트: Jamesducque/mojo
void Editor::pasteAsFragment(PassRefPtr<DocumentFragment> pastingFragment, bool smartReplace, bool matchStyle)
{
    ContainerNode* target = findEventTargetFromSelection();
    if (!target)
        return;
    target->dispatchEvent(TextEvent::createForFragmentPaste(m_frame.domWindow(), pastingFragment, smartReplace, matchStyle), IGNORE_EXCEPTION);
}
예제 #2
0
파일: Editor.cpp 프로젝트: Jamesducque/mojo
void Editor::pasteAsPlainText(const String& pastingText, bool smartReplace)
{
    ContainerNode* target = findEventTargetFromSelection();
    if (!target)
        return;
    target->dispatchEvent(TextEvent::createForPlainTextPaste(m_frame.domWindow(), pastingText, smartReplace), IGNORE_EXCEPTION);
}