assets/vendor/tinymce/plugins/wordcount/editor_plugin.js in tinymce-rails-3.4.3.2 vs assets/vendor/tinymce/plugins/wordcount/editor_plugin.js in tinymce-rails-3.4.4
- old
+ new
@@ -89,14 +89,14 @@
return;
t.block = 1;
setTimeout(function() {
+ if (!ed.destroyed) {
var tc = t._getCount(ed);
-
tinymce.DOM.setHTML(t.id, tc.toString());
-
setTimeout(function() {t.block = 0;}, 2000);
+ }
}, 1);
},
getInfo: function() {
return {