Reviewed by John
[WebKit-https.git] / LayoutTests / editing / editing.js
index 468e8c62c957ee252801f908b328b6d57a8bc7aa..ff3da95faf0fbd04ed473c9f84d239e55d978ad1 100644 (file)
@@ -282,6 +282,21 @@ function insertLineBreakCommand() {
     }
 }
 
+//-------------------------------------------------------------------------------------------------------
+function execInsertParagraphCommand() {
+    document.execCommand("InsertParagraph");
+}
+function insertParagraphCommand() {
+    if (commandDelay > 0) {
+        window.setTimeout(execInsertParagraphCommand, commandCount * commandDelay);
+        commandCount++;
+    }
+    else {
+        execInsertParagraphCommand();
+    }
+}
+
 //-------------------------------------------------------------------------------------------------------
 
 function execTypeCharacterCommand(c) {