Skip to content

Commit

Permalink
Fix #72 by avoiding styling ALL textareas in #editor
Browse files Browse the repository at this point in the history
  • Loading branch information
romannurik committed Jul 8, 2024
1 parent 7dd2ca4 commit 410f712
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ body {
flex: 1;
position: relative;

textarea {
textarea.plain-editor {
display: block;
width: 100%;
height: 100%;
Expand Down

0 comments on commit 410f712

Please sign in to comment.