aviso cuando pegas de word (#130)
This commit is contained in:
parent
ab502f402e
commit
f03479fad5
2 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||||
})
|
})
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue