ui-tinymce
ui-tinymce copied to clipboard
Doesn't work if ID exists in TEXTAREA tag
Ex:
<label for="text">Message</label>
<textarea ui-tinymce ng-model="mymodel" name="text" id="text"></textarea>
Fixe:
if (!attrs.id) {
var uniqueId = uiTinymceService.getUniqueId();
attrs.$set('id', uniqueId);
}
Hi,
I don't contribute to this project but in README:
Be sure not to set an id attribute. This is because the directive needs to maintain selector knowledge in order to handle buggy behavior in TinyMCE when DOM manipulation is involved, such as in a reordering of HTML through ng-repeat or DOM destruction/recreation through ng-if.
Maybe more complicated?