diff --git a/index.html b/index.html
index d34b287..4f2b3a4 100644
--- a/index.html
+++ b/index.html
@@ -15,6 +15,7 @@
Na mizo nisem položil knjigo. Popravite kar želite.
To je preiskus.
-->
+
Popravite kar želite.
Na mizo nisem položil knjigo. Popravite kar želite.
diff --git a/online-editor.js b/online-editor.js
index e42905e..908aa72 100644
--- a/online-editor.js
+++ b/online-editor.js
@@ -10,8 +10,9 @@ window.onload = () => {
}
besEditors[edit.id] = editor
besProof(edit)
- edit.addEventListener('beforeinput', e => besBeforeInput(edit.id, e), false)
+ edit.addEventListener('beforeinput', e => besHandleBeforeInput(edit.id, e), false)
edit.addEventListener('click', e => besHandleClick(e))
+ // TODO: Handle editor resizes.
})
}
@@ -102,7 +103,7 @@ async function besProof(el)
}
// Marks section of text that is about to change as not-yet-grammar-proofed.
-function besBeforeInput(editorId, event)
+function besHandleBeforeInput(editorId, event)
{
let editor = besEditors[editorId]
if (editor.timer) clearTimeout(editor.timer)
diff --git a/styles.css b/styles.css
index 05369b4..8a57b50 100644
--- a/styles.css
+++ b/styles.css
@@ -1,4 +1,7 @@
/* Besana online editor */
+
+/* TODO: Rename classes to "bes-..." */
+
.online-editor {
width: 80%;
height: 300px;
@@ -20,7 +23,7 @@
position: absolute;
z-index: 2;
cursor: text;
- /* pointer-events: none; */
+ pointer-events: none;
/* text-decoration: underline;
text-decoration-color: red;
cursor: text; */