From ed6530a6bad34439ee0f80d18f4dfd425eb44f2f Mon Sep 17 00:00:00 2001 From: f Date: Wed, 18 Nov 2020 13:38:42 -0300 Subject: [PATCH] al agregar un bloque empezar a editarlo --- app/assets/javascripts/02-editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/02-editor.js b/app/assets/javascripts/02-editor.js index 5bded209..2baa89ce 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() } }) }