angular-summernote icon indicating copy to clipboard operation
angular-summernote copied to clipboard

How to set codeview as default view

Open nageshtiwari-dp opened this issue 8 years ago • 2 comments

Hi,

How can I set codeview as default view ? Does it have to do something with config/options?

nageshtiwari-dp avatar Sep 15 '16 07:09 nageshtiwari-dp

This worked for me:

    $(editor).on('summernote.init', function() {
        // toggle editor to codeview
        $(editor).summernote('codeview.toggle');
    });

...in my case a good solution. Hope this helps anybody too.

YaWK avatar Oct 08 '16 21:10 YaWK

@YaWK Really helpful. Thank you!

tfoston avatar Feb 19 '18 14:02 tfoston