ui-tinymce icon indicating copy to clipboard operation
ui-tinymce copied to clipboard

Can't acces editor instance by ID

Open luisamor opened this issue 8 years ago • 2 comments

Hi,

I Have many instances of TinyMCE in the same view. When I try to get by ID, for example:

<textarea ui-tinymce="tinyMceOptions" name="introduction"  ng-model="offer.introduction"  class="wysiwyg-editor"></textarea>

If I execute: tinyMCE.get('introduction') returns null.

If try to read all the instances, tinyMCE.get() returns dinamic IDs, for example:

{
0:B,
1:B,
2:B,
3:B,
4:B,
ui-tinymce-1500378570765:B,
ui-tinymce-1500378570769:B,
ui-tinymce-1500378570772:B,
ui-tinymce-1500378570774:B,
ui-tinymce-1500378570776:B
}

¿Can I define a static ID for editor management? ¿How can I get a editor instance?

Thank you.

luisamor avatar Jul 18 '17 12:07 luisamor

+1

maxenz avatar Oct 20 '17 17:10 maxenz

Hi, I have the same problem, could you solve it?

edurevilla avatar May 12 '18 08:05 edurevilla