You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If we have two widgets with editors in the same homepage, changing the header format in the second widget will change the header format in the first widget.
Interesting, I can reproduce in that example. But it seems like the toolbar has an ID so it makes sense if the editor itself has an ID. https://imgur.com/a/ulyIiDA
However, this bug occurs when we change the header format without clicking inside the text area of the second editor. So to reproduce in that example:
Select text in the first editor and change to Header 1
Do not press inside the text area of the second editor, only select Header 2 from the dropdown
The text from the first editor will change to Header 2
I am not sure exactly how to setup the enterprise repo as an environment where I could play around myself, but glancing at the the editor.js source code I think maybe we can't rely on which editor element is currently selected. Since in this case I assume that the selected element would be editor 1 (where we clicked in the textarea and edited text) rather than element 2 (where we didn't click in the textarea but only used the toolbar)
I might be wrong about that though, but hopefully the repro instructions help.
Yep that helps - its working on the selected text... But not checking its within the same editor. But FYI if you want to set up the demo repo..
cd some-folder
git clone git@github.com:infor-design/enterprise.git .
// Make sure node 14 is installed (can use https://github.com/coreybutler/nvm-windows)
npm i
npm run start
Describe the bug
If we have two widgets with editors in the same homepage, changing the header format in the second widget will change the header format in the first widget.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The text in the header of the first widget should have Header 1
Additional context
Video
Code for reproduction
The text was updated successfully, but these errors were encountered: