Trigger input and autosize together
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2020-10-31 13:37:09 +01:00
parent dcdf2fd0ab
commit 2b8dc55ff0

View File

@ -369,9 +369,10 @@ function editor(root, inputData, options) {
currentElement.addClass('editor'); currentElement.addClass('editor');
$textarea.focus() $textarea.focus()
$textarea.data(cursor.getCurrent(store)) $textarea.data(cursor.getCurrent(store))
$textarea.textareaAutoSize()
currentEditor = $textarea currentEditor = $textarea
trigger('start-editing', currentEditor[0]) trigger('start-editing', currentEditor[0])
$textarea.trigger('input')
$textarea.textareaAutoSize()
return $textarea return $textarea
} }