mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 03:56:22 +00:00
pedirle al navegador que use <p>
This commit is contained in:
parent
7b4392d1a5
commit
774cfdbf76
1 changed files with 3 additions and 0 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Reference in a new issue