[update] Selectable code
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -4,9 +4,9 @@ body
|
|||||||
font-smoothing(antialiased)
|
font-smoothing(antialiased)
|
||||||
|
|
||||||
::-moz-selection
|
::-moz-selection
|
||||||
background #f1eff9
|
background #a5b3e2
|
||||||
::selection
|
::selection
|
||||||
background #f1eff9
|
background #a5b3e2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -489,10 +489,12 @@ body.project
|
|||||||
pre
|
pre
|
||||||
code
|
code
|
||||||
display inline-block
|
display inline-block
|
||||||
|
width 999999px
|
||||||
margin-right 15px
|
margin-right 15px
|
||||||
margin-bottom 15px
|
margin-bottom 15px
|
||||||
margin-left 38px
|
margin-left 38px
|
||||||
background none
|
background none
|
||||||
|
outline none
|
||||||
|
|
||||||
.differences
|
.differences
|
||||||
position absolute
|
position absolute
|
||||||
|
|||||||
+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 class="hljs"></code></pre>'),
|
return e.html('<pre><code contenteditable="true" 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