arreglar bug cuando hay muchos bloques

This commit is contained in:
void 2020-11-05 19:20:19 -03:00
parent d6141ddee6
commit c926dcfe8f

View file

@ -365,6 +365,7 @@ function setupEditor (editorEl) {
if (result) { if (result) {
type.updateInput(result, editorEl) type.updateInput(result, editorEl)
result.classList.add("selected") result.classList.add("selected")
break
} else { } else {
if (!contentEl.contains(range.commonAncestorContainer)) return if (!contentEl.contains(range.commonAncestorContainer)) return
type.disableInput(editorEl) type.disableInput(editorEl)