Someone can tell if there is any property that at the time of clicking the text editor I can issue some event.
With (ngModelChange) I can type and do some action, so I need to be able to issue the action at the moment of clicking.
Someone can tell if there is any property that at the time of clicking the text editor I can issue some event.
With (ngModelChange) I can type and do some action, so I need to be able to issue the action at the moment of clicking.
In the configuration of Tinymce module for angular you can force the click of the editor to click on the container and through the API you can define the click of the container as below:
<app-tinymce [(ngModel)]="potato" (click)="doSomethingWithPotato()"></app-tinymce>
And in your module you can instantiate Tinymce with the following config to force the click on the container:
TinymceModule.withConfig({
setup: function(editor) {
editor.on('click', function(e) {
editor.editorContainer.click();
});
}})
You can use the standard blur or focus html event
<input (blur)="onBlur()" (focus)="onFocus()">
You can associate events to your component using (onSelectionChange)="handleEvent($eventObj)"
, for example.
It is strongly recommended that you read the TinyMCE documentation