From 774cfdbf767851af2a4bcf683a251ab9d0929fc0 Mon Sep 17 00:00:00 2001 From: void Date: Mon, 9 Nov 2020 15:25:06 -0300 Subject: [PATCH] pedirle al navegador que use

--- app/assets/javascripts/02-editor.js | 3 +++ 1 file changed, 3 insertions(+) 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 => {