Parcourir la Source

evaluate correct selection range.

Lucas Stadler 12 ans auparavant
Parent
commit
43faaf54f8
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      js/pixl/public/trixl.html

+ 1 - 1
js/pixl/public/trixl.html

@ -582,7 +582,7 @@
582 582
583 583
			if (ev.ctrlKey && ev.keyCode == 13) { // ctrl+enter
584 584
				if (editor == document.activeElement) {
585
					var sel = editor.value.substr(editor.selectionStart, editor.selectionEnd);
585
					var sel = editor.value.substring(editor.selectionStart, editor.selectionEnd);
586 586
					eval(sel);
587 587
				}
588 588
			}