Skip to content

summernote method doesnt exist #5

@pipiscrew

Description

@pipiscrew

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions