5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-18 11:52:21 +00:00

al agregar un bloque empezar a editarlo

This commit is contained in:
f 2020-11-18 13:38:42 -03:00
parent 434bb4a6f1
commit ed6530a6ba

View file

@ -158,6 +158,8 @@ function setupBlockButton (button, block, contentEl, editorEl) {
} else if (block.createFn) { } else if (block.createFn) {
const newEl = block.createFn(editorEl) const newEl = block.createFn(editorEl)
parentEl.parentElement.insertBefore(newEl, parentEl.nextSibling) parentEl.parentElement.insertBefore(newEl, parentEl.nextSibling)
newEl.click()
} }
}) })
} }