Skip to content

Commit 5627b29

Browse files
committed
fix updating tinymce editors
The condition was backwards!
1 parent bf03feb commit 5627b29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/static/js/editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,7 @@ $(document).ready(function() {
15681568
if(element.classList.contains('has-tinymce')) {
15691569
var tinymce = element.querySelector('iframe');
15701570

1571-
if (document.activeElement == tinymce) {
1571+
if (document.activeElement != tinymce) {
15721572
var ed = element.querySelector('.wmTextArea').tinymce;
15731573
if(ed && ed.initialized) {
15741574
if(ed.getContent()!=value) {

0 commit comments

Comments
 (0)