-
-
Notifications
You must be signed in to change notification settings - Fork 518
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
Javascript errors integrating TipTap Pro extensions for Bard #9235
Comments
I've managed to track down this issue to TipTap's Placeholder extension, which is registered here. Commenting out the exception fixes the error for me. There's an outstanding issue on the TipTap respository for this error: ueberdosis/tiptap#3869 |
In the next release, you shouldn't see this error anymore as long as you're not using the "Placeholder" config option on your Bard field (in which case, you'd need to wait for TipTap to fix the issue on their end). |
Thanks @duncanmcclean! |
Hi again @jasonvarga and @duncanmcclean. I rescue this because we have encountered the same error when using tables in certain circumstances: the problem appears when selecting a content within a table or pressing the 'merge cells' button. Can you take a look and try to reproduce it? |
I can reproduce the issue with the Table feature. The TipTap developers have responded to the related issue (ueberdosis/tiptap#3869 (comment)). However, even after trying their suggestions (ensuring packages are on the correct versions, etc), the errors are still happening 🤔 |
Thanks @duncanmcclean. What TipTap version is using Statamic?. Out Mathematics extension is set to 2.6.5... |
It's currently using |
Bug description
When integrating some TipTap Pro extensions on Bard, a Javascript error appears when pressing enter to add a new paragraph (we tried with Mathematics and Invisible Characters).
After de error, the editor doesn't work propertly: try selecting a word, press backspace to delete it and see the cursor go away without making changes to the text.
Support team suggested that this problem can be a TipTap issue, but if you install and add it to the frontent with the same extensions, there's no error.
How to reproduce
Create .npmrc file with credentials from TipTap Pro (it's free!)
Install TipTap extensions:
$$
to see the extension workingLogs
Environment
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
Runtime (default)
Additional details
No response
The text was updated successfully, but these errors were encountered: