BlockNote
BlockNote copied to clipboard
Slash menu does not properly work in a single spa app(Image Block, Slash Menu positioning)
Describe the bug When loading the editor in our app that is loaded into single spa shell, the slash menu load position on first time is wrong but then it works fine. We fixed this issue by manually updating the editor state again after everything is loaded. Following is the what we used.
Similar problem occurs with Image Block. On the first load if we open slash menu then click on the image block option it works totally fine but if we do the same by enter it does not work. As far as we understand it is unable to find getBoundClientRecs but the element passed on function execute of image slash menu item, somehow its empty.
To Reproduce
We have reproduce the issue in the sandbox.
Load for the first time then using keyboard select image block option and type enter. Make sure to open this in browser tab does not work in codesandbox inbuilt browser
CodeSandBox
DirectCodeSandboxTab
@matthewlipski I really need to get the image plugin working. Do you have any suggestions that I can try?