cipchk / ngx-tinymce

Angular for tinymce
https://cipchk.github.io/ngx-tinymce/
MIT License
79 stars 15 forks source link

ngx TinyMCE - Get plain text #37

Closed CrackerakiUA closed 1 year ago

CrackerakiUA commented 1 year ago

Can't find a way to get text from ngx-tinymce as we can do in vanile one. Is there a way to get editor? In component there is no such thing as activeEditor or getContent

const myText = tinyMCE.activeEditor.selection.getContent({ format: 'text' });
cipchk commented 1 year ago

You can get the current instance via @ViewChild , then you can access the tinymce instance property.