diff --git a/edit.html b/edit.html index a263cc66..e3d9ae4c 100644 --- a/edit.html +++ b/edit.html @@ -210,13 +210,13 @@ .CodeMirror-search-hint { color: #888; } - body[data-highlight-selection-matches="token"] .cm-matchhighlight-approved .cm-matchhighlight, - body[data-highlight-selection-matches="token"] .CodeMirror-selection-highlight-scrollbar { + body[data-match-highlight="token"] .cm-matchhighlight-approved .cm-matchhighlight, + body[data-match-highlight="token"] .CodeMirror-selection-highlight-scrollbar { animation: fadein-match-highlighter 1s cubic-bezier(.97,.01,.42,.98); animation-fill-mode: both; } - body[data-highlight-selection-matches="selection"] .cm-matchhighlight-approved .cm-matchhighlight, - body[data-highlight-selection-matches="selection"] .CodeMirror-selection-highlight-scrollbar { + body[data-match-highlight="selection"] .cm-matchhighlight-approved .cm-matchhighlight, + body[data-match-highlight="selection"] .CodeMirror-selection-highlight-scrollbar { background-color: rgba(1, 151, 193, 0.1); } @-webkit-keyframes highlight { @@ -693,33 +693,33 @@ - + - + - + - + - + - + - + diff --git a/edit.js b/edit.js index 060218f6..3f939c58 100644 --- a/edit.js +++ b/edit.js @@ -281,7 +281,7 @@ function initCodeMirror() { function acmeEventListener(event) { var el = event.target; - var option = el.dataset.option; + var option = el.id.replace(/^editor\./, ''); //console.log("acmeEventListener heard %s on %s", event.type, el.id); if (!option) { console.error("acmeEventListener: no 'cm_option' %O", el); @@ -319,7 +319,7 @@ function acmeEventListener(event) { }, 100); })(); return; - case "highlightSelectionMatches": + case "matchHighlight": switch (value) { case 'token': case 'selection':