Commit cf95dc0b by lduarte1991

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

- fixed tinymce editors condition to check only positive numbers
parent e05f7770
......@@ -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);
};
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment