Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when updating viewModel with 'null' value for wysiwyg bound field. #17

Open
matracey opened this issue May 31, 2015 · 0 comments

Comments

@matracey
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant