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

SummernoteWidget load in codeview mode #337

Closed
fenist19 opened this issue Nov 12, 2018 · 1 comment
Closed

SummernoteWidget load in codeview mode #337

fenist19 opened this issue Nov 12, 2018 · 1 comment

Comments

@fenist19
Copy link

fenist19 commented Nov 12, 2018

what option to configure to download SummernoteWidget in codeview mode or delete don't add tags p and br

@fenist19 fenist19 changed the title SummernoteWidget load with source SummernoteWidget load in codeview mode Nov 12, 2018
@cybaj
Copy link

cybaj commented Feb 16, 2019

You can add JS codes in the HTML page.

<script type="text/javascript">
  $(document).ready(function() 
    $('.summernote').summernote({
      callbacks: 
        onInit: function() {
        console.log('Summernote is launched');
        $("button.btn-codeview").click()
      }
    }
  });
});
</script>

@lqez lqez closed this as completed Mar 25, 2019
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

3 participants