For dynamically created editors (e.g. with ngRepeat) the unique id that is generated and set to the element during linking may be overwritten, if the id is generated with an angular expression, so we have to overwrite it again.
During linking of uiTinymce the id is set to something like "ui-tinymce-3". But then it replaced to something like "foo_2" and in tinymce.init() it won't find the element, because it uses the selector "#ui-tinymce-3".
For dynamically created editors (e.g. with ngRepeat) the unique id that is generated and set to the element during linking may be overwritten, if the id is generated with an angular expression, so we have to overwrite it again.
Otherwise tinymce won't be initialized.
Here's an example:
During linking of
uiTinymce
theid
is set to something like"ui-tinymce-3"
. But then it replaced to something like"foo_2"
and intinymce.init()
it won't find the element, because it uses the selector"#ui-tinymce-3"
.