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:
parent
805780730d
commit
3535ea057f
2 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue