You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some users who do not change back from code view to the wysiwyg view before sending/saving. It appears ngModel updates in the wysiwyg editor with every user input but in the code editor the changes are held till the view is changed back to the wysiwyg editor. This is causing changes to the model to be missed if the user does not swap back to the wysiwyg editor.
Probably want to add a hook to onChangeCodeview to your initListeners function:
this._$element.on('summernote.onChangeCodeview', function(
event,
contents,
$editable
) {
setTimeout(function() {
self.updateModel(contents);
}, 0);
});
this would also be fine as a config option like immediateAngularModelUpdate
The text was updated successfully, but these errors were encountered:
I have some users who do not change back from code view to the wysiwyg view before sending/saving. It appears ngModel updates in the wysiwyg editor with every user input but in the code editor the changes are held till the view is changed back to the wysiwyg editor. This is causing changes to the model to be missed if the user does not swap back to the wysiwyg editor.
Probably want to add a hook to onChangeCodeview to your initListeners function:
this._$element.on('summernote.onChangeCodeview', function(
event,
contents,
$editable
) {
setTimeout(function() {
self.updateModel(contents);
}, 0);
});
this would also be fine as a config option like immediateAngularModelUpdate
The text was updated successfully, but these errors were encountered: