[TNL-293] Annotation Tool: Fixed TinMCE issue when changing units

- fixed tinymce editors condition to check only positive numbers
This commit is contained in:
lduarte1991
2014-09-10 15:50:50 -04:00
parent e05f7770e3
commit cf95dc0b75

View File

@@ -130,10 +130,11 @@ Annotator.Plugin.RichText = (function(_super) {
});
};
// makes sure that tinymce is not initiated by checking if editors exist
if(tinymce.editors.length === 0) {
tinymce.init(this.options.tinymce);
// makes sure that if tinymce exists already that this removes/destroys previous version
if (tinymce.editors.length > 0) {
tinymce.remove("li.annotator-item textarea");
}
tinymce.init(this.options.tinymce);
};
/**