Closed towry closed 5 years ago
I have to use froalaEditor.contentChanged event to update the model manually.
froalaEditor.contentChanged
scope.froalaOptions = { language: 'zh_cn', theme: 'xxxx', toolbarButtons: [ "bold", "italic", "underline", "|", "insertImage" ], events: { 'froalaEditor.contentChanged': (e, editor) => { if (ignoreChange) { ignoreChange = false; return; } // method to update the model. updateHtmlContent(editor.html.get(), true); } } }
If there is an initialized value for the model, then froalaEditor.contentChanged event will be triggered, so I have to use ignoreChange to pass it.
ignoreChange
@towry do you think you could make a Plunker / jsFiddle to highlight this?
Closing this due to lack of response.
I have to use
froalaEditor.contentChanged
event to update the model manually.If there is an initialized value for the model, then
froalaEditor.contentChanged
event will be triggered, so I have to useignoreChange
to pass it.