Forgot to check in my changes to editing.js
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Mar 2006 02:54:35 +0000 (02:54 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Mar 2006 02:54:35 +0000 (02:54 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13061 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/editing/editing.js

index dc0e6e8f9799defa3e0f6df57bf76116b441f22e..06022b24ec84eb6ddff5196859cefb151b762105 100644 (file)
@@ -346,6 +346,21 @@ function justifyRightCommand() {
 
 //-------------------------------------------------------------------------------------------------------
 
+function execInsertHTMLCommand(html) {
+    document.execCommand("InsertHTML", false, html);
+}
+function insertHTMLCommand(html) {
+    if (commandDelay > 0) {
+        window.setTimeout(execInsertHTMLCommand, commandCount * commandDelay, html);
+        commandCount++;
+    }
+    else {
+        execInsertHTMLCommand(html);
+    }
+}
+
+//-------------------------------------------------------------------------------------------------------
+
 function execInsertLineBreakCommand() {
     document.execCommand("InsertLineBreak");
 }