summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-12-10 00:23:01 -0800
committerMark Wells <mark@freeside.biz>2015-12-10 00:23:01 -0800
commit5f2c6bcae77fc9c1b723bae954ef09547da712ee (patch)
tree41ad94a844c46425be1a0022a9742bc572470c7d
parent991011f4ffc62b739f123a2124ca93f461d398ce (diff)
and also for CKEditor < 4.5
-rw-r--r--httemplate/elements/ckeditor/plugins/blockprotect/plugin.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/elements/ckeditor/plugins/blockprotect/plugin.js b/httemplate/elements/ckeditor/plugins/blockprotect/plugin.js
index 96c0f42b3..d0c9a02b8 100644
--- a/httemplate/elements/ckeditor/plugins/blockprotect/plugin.js
+++ b/httemplate/elements/ckeditor/plugins/blockprotect/plugin.js
@@ -134,7 +134,7 @@
} // elements
});
- editor.on( 'afterInsertHtml', function( evt ) {
+ editor.on( 'insertHtml', function( evt ) {
// if this leaves an open SPAN, move the cursor
// to after it
var range = editor.getSelection().getRanges()[0];
@@ -144,7 +144,8 @@
range.collapse();
editor.getSelection().selectRanges([ range ]);
}
- });
+ }, null, null, 30);
+ // actually inserting the HTML happens at priority 10.
} // afterInit
}); // plugins.add