Undo
[redakcja.git] / src / redakcja / static / js / wiki / caret.js
index 0e34f34..cedf8aa 100644 (file)
@@ -37,6 +37,7 @@ class Caret {
             self.singleClick = true;
             setTimeout(function() {
                 if (self.singleClick) {
+                    $.wiki.activePerspective().flush();
                     self.element.insertBefore(
                         anchorNode.splitText(
                             selection.anchorOffset
@@ -208,6 +209,8 @@ class Caret {
     
     move(opts) {
         if (!this.attached) return;
+
+        $.wiki.activePerspective().flush();
         
         this.normalize();