diff --git a/data/main.js b/data/main.js index 7fa7ace7..99dd5224 100644 --- a/data/main.js +++ b/data/main.js @@ -28,6 +28,15 @@ function scrollFunction() { } } +function textAreaKeyPressed() { + if (event.keyCode == 13) { + setTimeout(function() { + cursorIndex = document.getElementById("inputText").selectionStart + document.getElementById("inputText").value = document.getElementById("inputText").value.slice(0, cursorIndex) + "{line}" + document.getElementById("inputText").value.slice(cursorIndex, 0) + }, 5) + } +} + diff --git a/index.html b/index.html index ba64a3f7..77a24eeb 100644 --- a/index.html +++ b/index.html @@ -246,7 +246,7 @@

Rules Text
- +
Rules Text Font Size