Skip to content

Commit c06d7b6

Browse files
author
Philipp
committed
TODOs added
1 parent b59c394 commit c06d7b6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66

77
<script src="philsweb.jquery.codemirror.js"></script>
88

9+
TODO: create demo, write README, minify
10+
911
<div class="margin10 code-snippet" data-test style="width:250px;height:300px;border:1px solid black;"></div>
1012

11-
<div class="margin10 code-snippet" data-codemirror-config='{"showCursorWhenSelecting": true, "readOnly": true, "value": "Hello world"}'
13+
<div class="margin10 code-snippet" codemirror-config='{"showCursorWhenSelecting": true, "readOnly": true, "value": "Hello world"}'
1214
style="width:350px;height:150px;border:1px solid black;"></div>
1315

1416
<div class="margin10 code-snippet" data-no-lines style="width:500px;height:100px;border:1px solid black;"></div>

philsweb.jquery.codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
};
4141

4242
function getLocalConfigs(element) {
43-
var configJson = $(element).attr('data-codemirror-config');
43+
var configJson = $(element).attr('codemirror-config');
4444

4545
if (configJson === undefined) {
4646
return {};

0 commit comments

Comments
 (0)