LayoutTests:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Mar 2006 23:07:07 +0000 (23:07 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Mar 2006 23:07:07 +0000 (23:07 +0000)
commit39c73eefc17f1b36cac211ded26ccef3e9814e4f
tree303d2984290f8b2524754417f392efb3845fd229
parent26a65cb24411ce669737aa5bdd37c9128c333013
LayoutTests:

        Reviewed by darin

        <http://bugzilla.opendarwin.org/show_bug.cgi?id=7579>
        TinyMCE: Implement execCommand(insertImage, ...)

        * editing/editing.js:
        * editing/execCommand/insertImage-expected.checksum: Added.
        * editing/execCommand/insertImage-expected.png: Added.
        * editing/execCommand/insertImage-expected.txt: Added.
        * editing/execCommand/insertImage.html: Added.
        * editing/pasteboard/3976872-expected.txt:

WebCore:

        Reviewed by darin

        <http://bugzilla.opendarwin.org/show_bug.cgi?id=7579>
        TinyMCE: Implement execCommand(insertImage, ...)

        Implemented InsertImage and also changed paste to use a single
        rule for when to remove junk that remains after node removal.

        * editing/ReplaceSelectionCommand.cpp:
        (WebCore::ReplaceSelectionCommand::removeNodeAndPruneAncestors):
        (WebCore::ReplaceSelectionCommand::doApply):
        (WebCore::ReplaceSelectionCommand::removeLinePlaceholderIfNeeded):
        * editing/ReplaceSelectionCommand.h:
        * editing/htmlediting.cpp:
        * editing/jsediting.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13221 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/editing.js
LayoutTests/editing/execCommand/insertImage-expected.checksum [new file with mode: 0644]
LayoutTests/editing/execCommand/insertImage-expected.png [new file with mode: 0644]
LayoutTests/editing/execCommand/insertImage-expected.txt [new file with mode: 0644]
LayoutTests/editing/execCommand/insertImage.html [new file with mode: 0644]
LayoutTests/editing/pasteboard/3976872-expected.txt
WebCore/ChangeLog
WebCore/editing/ReplaceSelectionCommand.cpp
WebCore/editing/ReplaceSelectionCommand.h
WebCore/editing/htmlediting.cpp
WebCore/editing/jsediting.cpp