From adb7c9d077ee256347dc937b84fb4c8eba4a632c Mon Sep 17 00:00:00 2001 From: Nriver Date: Tue, 16 Oct 2018 21:04:37 +0800 Subject: [PATCH] fix misplaced name of code and $code --- src/summernote-ext-highlight.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/summernote-ext-highlight.js b/src/summernote-ext-highlight.js index 31e10f2..e9ae407 100644 --- a/src/summernote-ext-highlight.js +++ b/src/summernote-ext-highlight.js @@ -85,11 +85,11 @@ this.createCodeNode = function (code, select) { var $code = $(''); - $code.html($code); + $code.html(code); $code.addClass('language-' + select); var $pre = $('
');
-                $pre.html(code)
+                $pre.html($code)
                 $pre.addClass('prettyprint').addClass('linenums');
 
                 return $pre[0];