-
Hi I was trying to make a command plugin to add in page breaks. Here is my code for the action : action: function () { I however noticed that nodeChange results in the cursor being set inside the new div element. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Try it. |
Beta Was this translation helpful? Give feedback.
Try it.
this.nodeChange(newNode, ['display','page-break-after'], null, null);
this.setRange(newNode, 1, newNode, 1)