Skip to content
Snippets Groups Projects
Commit 0506dfc5 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

Remove accidentally committed debug changes

parent 4ba596ea
No related branches found
No related tags found
No related merge requests found
......@@ -26,9 +26,8 @@
<article>
<h2>Bi-directional Text Demo</h2>
<form style="width: 70em"><textarea id="code" name="code"><!-- Piece of the CodeMirror manual, 'translated' into Arabic by Google Translate -->
<form><textarea id="code" name="code"><!-- Piece of the CodeMirror manual, 'translated' into Arabic by Google Translate -->
<!-- قطعة من دليل CodeMirror، "ترجم" إلى العربية بواسطة جوجل ترجمة -->
<p class="title">هل يمكنك اختيار مستوى قسط التأمين الذي ترغب بدفعه؟</p>
<dl>
<dt id=option_value><code>value (string or Doc)</code></dt>
......@@ -75,8 +74,8 @@
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
mode: "text/html",
lineNumbers: true,
lineWrapping: false,
direction: "ltr"
lineWrapping: true,
direction: "rtl"
});
var dirRadios = {ltr: document.getElementById("ltr"),
......@@ -98,9 +97,6 @@ moveCheckbox.checked = editor.getOption("rtlMoveVisually");
moveCheckbox.onchange = function() {
editor.setOption("rtlMoveVisually", moveCheckbox.checked);
};
editor.on("cursorActivity", () => console.log(editor.getCursor("anchor"), editor.getCursor("head")))
console.log(editor.coordsChar({left: 914, top: 122}, "window"))
</script>
<p>Demonstration of bi-directional text support. See
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment