Ledzz / angular2-tinymce

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

How to get reference to the tinyMCE element for validation, onChange, etc. events? #54

Closed kunal-dethe-v2sol closed 5 years ago

kunal-dethe-v2sol commented 6 years ago

Hello, Its really a great package which supports Angular 4.

But how do we get the reference to the object or element generated by this package.

Queries: 1) I am using jQuery Validation so need to set some rules for it like required, 'maxlength', etc. 2) Need to set the callback function in the Angular 4 component that will be triggered with onChange(), onBlur(), etc.

Have found through the developer tool that it does not even create a hidden textarea which can be used.

I have used this to add the editor: <app-tinymce [formControl]='contentControl'></app-tinymce>

Anything that I am missing from previous issues or documentation?