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.addEventListener("paste", event => {
contentEl.querySelector(".editor-aviso-word").style.display = "block" editorEl.querySelector(".editor-aviso-word").style.display = "block"
}) })
document.addEventListener("selectionchange", event => { document.addEventListener("selectionchange", event => {
cleanContent(contentEl) cleanContent(contentEl)

View file

@ -35,7 +35,10 @@
background: white; 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 { .editor-primary-toolbar, .editor-auxiliary-toolbar {
display: block; display: block;