5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 05:01:41 +00:00

editor: arreglar el aviso de word

al pegar, ahora si se muestra un aviso de word, y se arregló el css
para que no tape el texto del editor.
This commit is contained in:
void 2021-01-09 19:20:59 +00:00
parent 805780730d
commit 3535ea057f
2 changed files with 5 additions and 2 deletions

View file

@ -444,7 +444,7 @@ function setupEditor (editorEl) {
}
})
contentEl.addEventListener("paste", event => {
contentEl.querySelector(".editor-aviso-word").style.display = "block"
editorEl.querySelector(".editor-aviso-word").style.display = "block"
})
document.addEventListener("selectionchange", event => {
cleanContent(contentEl)

View file

@ -35,7 +35,10 @@
background: white;
}
.editor-aviso-word { display: none; }
.editor-aviso-word {
display: none;
position: initial; /* evitar que tape el texto */
}
.editor-primary-toolbar, .editor-auxiliary-toolbar {
display: block;