Ledzz / angular2-tinymce

Angular 2 component for TinyMCE MCE WYSIWYG editor
https://angular2-tinymce.surge.sh
66 stars 37 forks source link

How to set content to specific editor #16

Closed dineshk16feb closed 7 years ago

dineshk16feb commented 7 years ago

I am trying to set content to specific editor using below code, but its working on all active editor tinymce.activeEditor.execCommand('mceInsertContent', false, '

Content here

');

is there any way to set ID or something else.

Ledzz commented 7 years ago

You shouldn't set content via tinymce API, you can setValue or patchValue to associated formControl, or update your ngModel.