From 410f712650a4be00464a996a8f9fb9188c1ff29f Mon Sep 17 00:00:00 2001 From: Roman Nurik <roman@nurik.net> Date: Mon, 8 Jul 2024 11:47:28 -0400 Subject: [PATCH] Fix #72 by avoiding styling ALL textareas in #editor --- index.js | 1 + index.scss | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 2f00f43..270c379 100644 --- a/index.js +++ b/index.js @@ -65,6 +65,7 @@ function setupEditor() { if (navigator.userAgent.match(/iP(hone|od|ad)|Android/)) { // Ace editor is pretty busted on mobile, just use a <textarea> let $textArea = $('<textarea>') + .addClass('plain-editor') .attr('autocapitalize', 'off') .attr('spellcheck', 'false') .val(config.code) diff --git a/index.scss b/index.scss index 9dc1765..cd661b2 100644 --- a/index.scss +++ b/index.scss @@ -222,7 +222,7 @@ body { flex: 1; position: relative; - textarea { + textarea.plain-editor { display: block; width: 100%; height: 100%;