New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MenuBubble: Error in v-on handler: "IndexSizeError: Failed to execute 'setStart' on 'Range' #954
Comments
Just experienced the same here. |
Just started implementing the bubble menu and saw the same error. I was worried this was a major bug, but it doesn't seem to do anything except pollute the console. |
The same |
Noticed the same. |
Got the same issue, rolling back to version |
Doesn't fix it for me. Did you change anything else? |
For us tiptap@v1.31.0 with tiptap-extensions@v1.34.0 seems to work without the error. |
@dominik-bln: |
This happens if you preload content and initialise the editor within the 'mounted' method. To fix this I initialise the editor within the data object.
|
@kevin-lynch do you use editor-menu-bubble ? error still persist on my side when using editor-menu-bubble |
Getting the same error after the bumping to latest versions of tiptap packages. Rolling back till fix is rolled out |
@benmandr please, which versions of tiptap packages do you use and don't have an problem? |
tiptap@^1.31.0 |
We had no luck with either version. Although we love the clear and modern interface of TipTap, we switched to TinyMCE because of this issue. But we'd love to come back soon :) |
After further testing, the issue was still present. I downgraded to following versions, recompiled my build and the issue was no longer present. |
Thank you. I have the same problem in these versions too. That's strange. |
As mentioned by above posts, be sure to do a clean install after the downgrade - remove old node modules (just for the sake of it), run |
Same problem here using these versions: tiptap: 1.32.1 The link is inserted correctly though. |
If you downgrade to the following build versions and ensure you recompile all of your assets post downgrade, it should solve the issue. tiptap @1.31.0 |
Just to note you can actually see this in action on the main tiptap website: https://tiptap.dev/menu-bubble |
It's an overflow issue, because Looking at the traces quickly, it seems like this function triggers it every time tiptap/packages/tiptap/src/Plugins/MenuBubble.js Lines 3 to 8 in 3b8ba27
As -1 is truthy, I think you need to use This may be a red herring of course! |
@MarcelloTheArcane Thanks, thats seems to fix it |
I am getting a similar type of error, in my case is an IndexSizeError. "tiptap": "^1.32.1", In looking at the https://tiptap.dev/menu-bubble, it triggers the same error.
After selecting a word or range of words, I click on any of the formatting choices in EditorMenuBubble — it triggers the IndexSizeError, it updates the DOM, but, it does not trigger the onUpdate Method. I updated the tiptap/packages/tiptap/src/Plugins/MenuBubble.js textRange method as per @MarcelloTheArcane comment above — but in this case, it didn't solve the problem.
Any help would be greatly appreciated. |
Unfortunately there's no solution currently in place for version 1.32.1. In order to resolver this you'll need to downgrade as per my suggestion. |
@kevin-lynch it works, Thank you! |
Sorry for the long wait. Merged the PR, thanks @MarcelloTheArcane! And thanks for all others helping out with reports und debugging! I’ll release a new version of tiptap probably tomorrow. |
Awesome! There is no BUG using the |
Thanks, no errors when using the latest version. |
Awesome, @hanspagel no error on my part using Titap 1.32.2 |
Describe the bug
using the editor-menu-bubble for adding a Link will result in the following error:
Error in v-on handler: "IndexSizeError: Failed to execute 'setStart' on 'Range': The offset 4294967295 is larger than the node's length (16)."
Steps to Reproduce / Codesandbox Example
Browser: Chrome (Google Chrome, Vivaldi):
Screenshots
The text was updated successfully, but these errors were encountered: