question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

summernote 0.7.0 convert source html like PHP htmlentities function

See original GitHub issue

0.7.0 Release is not working correctlly. For example, in this example: “examples/codemirror.html”

summernote convert source html in textarea like PHP htmlentities function, and in code view shows as encoded html.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> 
  <title>summernote</title>
  <!-- include jquery -->
  <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script> 

  <!-- include libraries BS3 -->
  <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" />
  <script type="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
  <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" />

  <!-- include codemirror (codemirror.css, codemirror.js, xml.js, formatting.js)-->
  <link rel="stylesheet" type="text/css" href="http://cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/codemirror.min.css" />
  <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/theme/blackboard.min.css">
  <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/theme/monokai.min.css">
  <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/codemirror.js"></script>
  <script src="http://cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/mode/xml/xml.min.js"></script>
  <script src="http://cdnjs.cloudflare.com/ajax/libs/codemirror/2.36.0/formatting.min.js"></script>

  <!-- include summernote -->
  <link rel="stylesheet" href="../dist/summernote.css">
  <script type="text/javascript" src="../dist/summernote.js"></script>

  <script type="text/javascript">
    $(document).ready(function() {
      $('.summernote').summernote({
        height: 200,
        tabsize: 2,
        codemirror: {
          theme: 'monokai'
        }
      });
    });
  </script>
</head>
<body>
<textarea class="summernote"><p>Seasons <b>coming up</b></p></textarea>
</body>
</html>

I have tried examples of summernote 0.6.16 release, and In this version this bug is absent. Have screenshots with this bug:

2015-12-06 14 25 54 2015-12-06 14 26 02

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Renato-Garbimcommented, Feb 17, 2017

Im getting problems with it too… but the i cant find a way to solve it…

My codeEditor returns the pure Html

-> <u><i>test with new <b>question</b></i></u>

how can i solve it ??

0reactions
ankitchauhan477commented, Sep 15, 2017

$(‘#summernote’).summernote(‘code’, ‘html_tags_string_from_db’); Add this script if you want to re-edit and wish to get it purely decoded as html.

screenshot from 2017-09-15 10-47-39

screenshot from 2017-09-15 10-48-15

Read more comments on GitHub >

github_iconTop Results From Across the Web

Examples - Summernote
Super Simple WYSIWYG Editor on Bootstrap Summernote is a JavaScript library that helps you create WYSIWYG editors online.
Read more >
Summernote content coming with html tags - Stack Overflow
Use val() to get all what entered in textarea or text, So : var content = $("#summernote").val().
Read more >
node packages | Corvid by Wix
csv-converter-to-pdf-and-html. 1.0.2. available. 12/28/2022 ... @firebase/functions ... 0.7.0. available. 05/22/2022. @solana/web3.js. 1.41.3. available.
Read more >
Notices_BigFix_Compliance_V1... - HCL BigFix Support
MIT hotkey-1.2.0.js An open source front-end implementation that help ... MIT htmlentities-4.3.4.gem A module for encoding and decoding (X)HTML.
Read more >
Open Source Used In DNAC Platform Frey - Cisco
With respect to the free/open source software listed in this document, ... 1.241 babel-plugin-transform-function-bind 6.22.0 6.22.0.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found