Open elbakerino opened 3 years ago
Any update on the issue? Am am still facing this and on mobile is essentially troublesome.
(edit)
A ghetto solving solution is to set the z-index of codex-editor
class in reverse. Last instance must end with z-index: 1
.
Using this I made the following function that triggers on each instance of editorJs onReady()
:
function setEditorIndexes(){
var editors = document.querySelectorAll('.codex-editor');
var number = editors.length;
editors.forEach((editor, index) => {
editor.style.zIndex = number - index;
}) ;
}
Describe a bug.
Multiple EditorJS instances on same page, each with own holder/different id.
When focusing the first one, then directly the second, the first ones toolmenu is still visible, only after a focus on not-editorjs closes both, with a focus in between it closes/opens correctly.
Expected behavior: Closing the menu of the first focused instance, when focusing directly into another EditorJS on the same page.
Screenshots:
Device, Browser, OS: Desktop, Firefox 84, Windows 10
Editor.js version: 2.19.2-rc.1
Plugins you use with their versions: only paragraph, but inside
react-editor-js@1.9.0