scrivito_highlightjs_widget 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 064dde8c44ce29668b081d63eaf719ef934e669e
|
4
|
+
data.tar.gz: 010a8611ce5ed5c03dc86770ad56fd4ec2dc61dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02eab0ada37798ccac5ec8d38cdf587cbd314ef8311d3de4ba5a88e33ed6459ccb8ced08da1c2edde03d44e8d6cc42f102c9b7de053a0031388d3bf94ed98a14
|
7
|
+
data.tar.gz: fda3c31163d513d26f811db3a5b08a8653fc07709786d6d098bb732f897421f708a2b06e9efd2d56c21389d06dd3f35ef721fe5cf29c7da2ddab5c3c21318ee7
|
@@ -1,5 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
}
|
1
|
+
scrivito.on('content', function(widget) {
|
2
|
+
$(widget).find('.highlightjs code').each(function(i, block) {
|
3
|
+
hljs.highlightBlock(block);
|
4
|
+
});
|
5
|
+
}
|
6
|
+
);
|
@@ -1,11 +1,9 @@
|
|
1
1
|
<div class="editing highlightjs_widget">
|
2
2
|
<h4>Code</h4>
|
3
3
|
<pre class="highlightjs">
|
4
|
-
|
5
|
-
<%= scrivito_tag(:textarea, widget, :code, data: {editor: "textfield-editor"}, style: "width:100%;height:150px;") %>
|
6
|
-
</code>
|
4
|
+
<%= scrivito_tag(:textarea, widget, :code, data: {editor: "textfield-editor"}, style: "width:100%;height:168px;") %>
|
7
5
|
</pre>
|
8
|
-
|
6
|
+
|
9
7
|
<h4>Language</h4>
|
10
8
|
<div class="alert alert-info">
|
11
9
|
If automatic language detection does not work for you.
|