Disable spellcheck

This commit is contained in:
Peter Stuifzand 2020-10-15 22:38:52 +02:00
parent ce0c85c354
commit 701cd7b29d

View File

@ -246,7 +246,7 @@ function editor(root, inputData, options) {
editing = true editing = true
let elements = $(rootElement).children('div.list-item'); let elements = $(rootElement).children('div.list-item');
let $textarea = $('<textarea rows=1 class="input-line">'); let $textarea = $('<textarea rows=1 class="input-line" spellcheck="false">');
$textarea.val(cursor.getCurrent(store).text).trigger('input') $textarea.val(cursor.getCurrent(store).text).trigger('input')
let currentElement = cursor.getCurrentElement(elements); let currentElement = cursor.getCurrentElement(elements);
currentElement.find('.content').replaceWith($textarea) currentElement.find('.content').replaceWith($textarea)