Skip to content

Commit

Permalink
Merge pull request #10 from Nriver/master
Browse files Browse the repository at this point in the history
fix misplaced name of code and $code
  • Loading branch information
heyanlong authored Oct 17, 2018
2 parents 1e31b9f + adb7c9d commit b9cf65a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/summernote-ext-highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@

this.createCodeNode = function (code, select) {
var $code = $('<code>');
$code.html($code);
$code.html(code);
$code.addClass('language-' + select);

var $pre = $('<pre>');
$pre.html(code)
$pre.html($code)
$pre.addClass('prettyprint').addClass('linenums');

return $pre[0];
Expand Down

0 comments on commit b9cf65a

Please sign in to comment.