We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when click the preview button I getting :
looking through https://github.com/summernote/summernote/blob/develop/examples/textarea.html line26 - $('.summernote').summernote('code')
your example code : $('.preview-btn').click(function () { $('#preview-box').html($('.summernote').code()); $('.summernote').code(''); prettyPrint(); }); modified code : $('.preview-btn').click(function () { $('#preview-box').html($('.summernote').summernote('code')); $('.summernote').val(''); prettyPrint(); }); working, is buggy when inserting HTML code...
$('.preview-btn').click(function () { $('#preview-box').html($('.summernote').code()); $('.summernote').code(''); prettyPrint(); });
$('.preview-btn').click(function () { $('#preview-box').html($('.summernote').summernote('code')); $('.summernote').val(''); prettyPrint(); });
The text was updated successfully, but these errors were encountered:
@pipiscrew please use
$('#summernote').summernote('code');
Sorry, something went wrong.
No branches or pull requests
when click the preview button I getting :
looking through
https://github.com/summernote/summernote/blob/develop/examples/textarea.html
line26 - $('.summernote').summernote('code')
your example code :
$('.preview-btn').click(function () { $('#preview-box').html($('.summernote').code()); $('.summernote').code(''); prettyPrint(); });
modified code :
$('.preview-btn').click(function () { $('#preview-box').html($('.summernote').summernote('code')); $('.summernote').val(''); prettyPrint(); });
working, is buggy when inserting HTML code...
The text was updated successfully, but these errors were encountered: