BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Slash menu does not properly work in a single spa app(Image Block, Slash Menu positioning)

Open hsingh-ds opened this issue 2 years ago • 1 comments

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

hsingh-ds avatar Nov 23 '23 06:11 hsingh-ds

@matthewlipski I really need to get the image plugin working. Do you have any suggestions that I can try?

hsingh-ds avatar Dec 09 '23 00:12 hsingh-ds