fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Undo
[redakcja.git]
/
src
/
redakcja
/
static
/
js
/
wiki
/
caret.js
diff --git
a/src/redakcja/static/js/wiki/caret.js
b/src/redakcja/static/js/wiki/caret.js
index
0e34f34
..
cedf8aa
100644
(file)
--- a/
src/redakcja/static/js/wiki/caret.js
+++ b/
src/redakcja/static/js/wiki/caret.js
@@
-37,6
+37,7
@@
class Caret {
self.singleClick = true;
setTimeout(function() {
if (self.singleClick) {
self.singleClick = true;
setTimeout(function() {
if (self.singleClick) {
+ $.wiki.activePerspective().flush();
self.element.insertBefore(
anchorNode.splitText(
selection.anchorOffset
self.element.insertBefore(
anchorNode.splitText(
selection.anchorOffset
@@
-208,6
+209,8
@@
class Caret {
move(opts) {
if (!this.attached) return;
move(opts) {
if (!this.attached) return;
+
+ $.wiki.activePerspective().flush();
this.normalize();
this.normalize();