diff --git a/app/assets/javascripts/02-editor.js b/app/assets/javascripts/02-editor.js index 5bded20..2baa89c 100644 --- a/app/assets/javascripts/02-editor.js +++ b/app/assets/javascripts/02-editor.js @@ -158,6 +158,8 @@ function setupBlockButton (button, block, contentEl, editorEl) { } else if (block.createFn) { const newEl = block.createFn(editorEl) parentEl.parentElement.insertBefore(newEl, parentEl.nextSibling) + + newEl.click() } }) }