Commit 825dbddd by Sarina Canelake

Merge pull request #5165 from lduarte1991/lduarte-harvardx-pr25

Annotation Tool: Fixed TinyMCE issue when changing units
parents 9fc4fbc1 cf95dc0b
...@@ -130,10 +130,11 @@ Annotator.Plugin.RichText = (function(_super) { ...@@ -130,10 +130,11 @@ Annotator.Plugin.RichText = (function(_super) {
}); });
}; };
// makes sure that tinymce is not initiated by checking if editors exist // makes sure that if tinymce exists already that this removes/destroys previous version
if(tinymce.editors.length === 0) { if (tinymce.editors.length > 0) {
tinymce.init(this.options.tinymce); 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