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()
} }
}) })
} }