Reviewed by John
[WebKit-https.git] / LayoutTests / editing / editing.js
index ee5c08e..ff3da95 100644 (file)
@@ -269,16 +269,31 @@ function justifyRightCommand() {
 
 //-------------------------------------------------------------------------------------------------------
 
-function execInsertNewlineCommand() {
-    document.execCommand("InsertNewline");
+function execInsertLineBreakCommand() {
+    document.execCommand("InsertLineBreak");
 }
-function insertNewlineCommand() {
+function insertLineBreakCommand() {
     if (commandDelay > 0) {
-        window.setTimeout(execInsertNewlineCommand, commandCount * commandDelay);
+        window.setTimeout(execInsertLineBreakCommand, commandCount * commandDelay);
         commandCount++;
     }
     else {
-        execInsertNewlineCommand();
+        execInsertLineBreakCommand();
+    }
+}
+
+//-------------------------------------------------------------------------------------------------------
+function execInsertParagraphCommand() {
+    document.execCommand("InsertParagraph");
+}
+function insertParagraphCommand() {
+    if (commandDelay > 0) {
+        window.setTimeout(execInsertParagraphCommand, commandCount * commandDelay);
+        commandCount++;
+    }
+    else {
+        execInsertParagraphCommand();
     }
 }