-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Tiptap Editor inside Builder's Blocks with Interactive Preview #510
Comments
Are you using multi language? |
Nope. Just interactive blocks but without the previews. so that might be the issue. Also there is another weird issue I encountered that like ~2-3% of the time when you are editing a custom tiptap block it gets duplicated 🤔 |
If you're using block previews then you have to give each block a blade file to preview. |
Bud!, i just tested it with preview, it doesn't matter if the block has preview or not, as long as it's interactive it will cause the issue. |
Ok, but I'm just not understanding why the block data is a string. Just asking questions to try to get on the same page. |
Your repo is using a native builder field with previews set but your block isn't defining a preview. So I'm not sure what the plugin issue is since you're not using the native field in the way it is meant to be used. |
Filament Version
v3.2.125
Plugin Version
v3.4.21
PHP Version
PHP 8.3.13
Problem description
When used inside the builder blocks with previews on, while editing through the block's edit action causes an issue with the tiptap blocks' preview.
issue.mov
Expected behavior
Now if we add the following piece of code inside the
if
block (line 198) in therenderBlockPreviews()
method then issue will be resolved as shown. Now this is what i could come up with. But maybe you would know a better way to resolve it.filament-tiptap-editor/src/TiptapEditor.php
Line 198 in 0d29282
expected.mov
Steps to reproduce
http://127.0.0.1:8000
in browserlogin
edit
a post and click on the blocks'sedit
action.Reproduction repository
https://github.com/bezhanSalleh/tiptap-inside-builder-block-issue
Relevant log output
The text was updated successfully, but these errors were encountered: