[update] Selectable code

This commit is contained in:
brunosimon
2016-10-23 23:56:27 +02:00
parent b7e530b92e
commit e44ca988fb
4 changed files with 6 additions and 4 deletions
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -4,9 +4,9 @@ body
font-smoothing(antialiased)
::-moz-selection
background #f1eff9
background #a5b3e2
::selection
background #f1eff9
background #a5b3e2
+2
View File
@@ -489,10 +489,12 @@ body.project
pre
code
display inline-block
width 999999px
margin-right 15px
margin-bottom 15px
margin-left 38px
background none
outline none
.differences
position absolute
+1 -1
View File
@@ -119,7 +119,7 @@ https://github.com/pc035860/angular-highlightjs.git */
compile: function(e, f, g) {
var h = e[0].innerHTML.replace(/^(\r\n|\r|\n)/m, ""),
i = e[0].textContent.replace(/^(\r\n|\r|\n)/m, "");
return e.html('<pre><code class="hljs"></code></pre>'),
return e.html('<pre><code contenteditable="true" class="hljs"></code></pre>'),
function(e, f, g, j) {
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() {