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

summernote method doesnt exist #5

Open
pipiscrew opened this issue Mar 26, 2016 · 1 comment
Open

summernote method doesnt exist #5

pipiscrew opened this issue Mar 26, 2016 · 1 comment

Comments

@pipiscrew
Copy link

when click the preview button I getting :
image

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...

@pipiscrew pipiscrew changed the title summernote property doesnt exist summernote method doesnt exist Mar 28, 2016
@heyanlong
Copy link
Owner

@pipiscrew please use

$('#summernote').summernote('code');

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

2 participants