[fix] Remove code auto correction
This commit is contained in:
+1
-1
@@ -119,7 +119,7 @@ https://github.com/pc035860/angular-highlightjs.git */
|
|||||||
compile: function(e, f, g) {
|
compile: function(e, f, g) {
|
||||||
var h = e[0].innerHTML.replace(/^(\r\n|\r|\n)/m, ""),
|
var h = e[0].innerHTML.replace(/^(\r\n|\r|\n)/m, ""),
|
||||||
i = e[0].textContent.replace(/^(\r\n|\r|\n)/m, "");
|
i = e[0].textContent.replace(/^(\r\n|\r|\n)/m, "");
|
||||||
return e.html('<pre><code contenteditable="true" class="hljs"></code></pre>'),
|
return e.html('<pre><code contenteditable="true" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="hljs"></code></pre>'),
|
||||||
function(e, f, g, j) {
|
function(e, f, g, j) {
|
||||||
var k, l = c(g);
|
var k, l = c(g);
|
||||||
if (a.isDefined(l("escape")) ? k = b(l("escape")) : a.isDefined(l("no-escape")) && (k = b("false")), j.init(f.find("code")), l("onhighlight") && j.highlightCallback(function() {
|
if (a.isDefined(l("escape")) ? k = b(l("escape")) : a.isDefined(l("no-escape")) && (k = b("false")), j.init(f.find("code")), l("onhighlight") && j.highlightCallback(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user