Closed rguruprakash closed 8 years ago
I am trying to insert a DOM node on a custom button click. but the model associated with the textarea is not getting updated.
I have created a plunker to demonstrate the issue. https://plnkr.co/edit/Qe3COw
Try clicking the 'My Button' more than once. from the second click, the model is not getting updated.
Found a workaround using editor.execCommand('mceInsertContent', false, a);
Plunker: https://plnkr.co/edit/vHF3sS?p=preview
I am trying to insert a DOM node on a custom button click. but the model associated with the textarea is not getting updated.
I have created a plunker to demonstrate the issue. https://plnkr.co/edit/Qe3COw
Try clicking the 'My Button' more than once. from the second click, the model is not getting updated.