al agregar un bloque empezar a editarlo
This commit is contained in:
parent
434bb4a6f1
commit
ed6530a6ba
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue