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'm using knockout mapping to simplify my life when updating my model via ajax, although this issue applies with or without Knockout mapping. The problem arises when one of my WYSIWYG fields returns a null value and needs to be updated with this null value. The update function makes a tinymce.setContent( value ); call (wysiwyg.js:53), which will break when it gets to TinyMCE if value is null. I can work around this quite easily by updating the WYSIWYG field's value from null to an empty string.
Perhaps we could add a null check to this plugin when update is called and set value to an empty string if null? Or even a more friendly error message, as there isn't currently any kind of check in place!
The text was updated successfully, but these errors were encountered:
I'm using knockout mapping to simplify my life when updating my model via ajax, although this issue applies with or without Knockout mapping. The problem arises when one of my WYSIWYG fields returns a null value and needs to be updated with this null value. The
update
function makes atinymce.setContent( value );
call (wysiwyg.js:53
), which will break when it gets to TinyMCE if value is null. I can work around this quite easily by updating the WYSIWYG field's value from null to an empty string.Perhaps we could add a null check to this plugin when update is called and set value to an empty string if null? Or even a more friendly error message, as there isn't currently any kind of check in place!
The text was updated successfully, but these errors were encountered: