5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-01 13:46:08 +00:00

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

View file

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