diff --git a/app/assets/javascripts/02-editor.js b/app/assets/javascripts/02-editor.js index 64c8810..fff979a 100644 --- a/app/assets/javascripts/02-editor.js +++ b/app/assets/javascripts/02-editor.js @@ -317,6 +317,9 @@ function cleanNode (node, contentEl) { } function setupEditor (editorEl) { + // XXX: ¡Esto afecta a todo el documento! ¿Quizás usar un iframe para el editor? + document.execCommand('defaultParagraphSeparator', false, 'p') + const contentEl = editorEl.querySelector(".editor-content") contentEl.addEventListener("keydown", event => {