diff --git a/app/assets/javascripts/02-editor.js b/app/assets/javascripts/02-editor.js index c7e4c1b..b95fe17 100644 --- a/app/assets/javascripts/02-editor.js +++ b/app/assets/javascripts/02-editor.js @@ -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) diff --git a/app/assets/stylesheets/editor.scss b/app/assets/stylesheets/editor.scss index a4fc7dc..d1125ab 100644 --- a/app/assets/stylesheets/editor.scss +++ b/app/assets/stylesheets/editor.scss @@ -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;