aviso cuando pegas de word (#130)

This commit is contained in:
void 2020-11-18 22:51:15 -03:00
parent ab502f402e
commit f03479fad5
2 changed files with 8 additions and 0 deletions

View file

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

View file

@ -35,6 +35,11 @@
background: white; background: white;
} }
.editor-aviso-word {
color: red;
display: none;
}
.editor-primary-toolbar, .editor-auxiliary-toolbar { .editor-primary-toolbar, .editor-auxiliary-toolbar {
display: block; display: block;
overflow-x: auto; overflow-x: auto;