TheEvilTomat0
awcodes tiptap editor
Sorry to bother you again, but unfortunately it's still not working. Not sure if i'm doing something wrong here. Please see my code:
resource\js\tiptap\addclass.js
resource\js\tiptap\extensions.js
filament-tiptap-editor.php
app\TiptapExtensions\AddClass.php
vite.config.js
I did encounter an error when i ran npm run build
It said [vite]: Rollup failed to resolve import "@tiptap/extension-table" from
but fixed that by running npm install @tiptap/extension-table
.
When i add a table in my editor i see no class appearing in the inspector or when i open the editor with the source tool.23 replies
awcodes tiptap editor
So you mean that i need to create a new extension, include everything from the original table tool and then add the class there? There is no option to just add the class in some configuration then or add the class to the existing table tool?
23 replies
awcodes tiptap editor
Yes, the tables are getting exported as a pdf. Tried to target it with the selectors higher up but the styling is't getting passed on. It works when i directly add a class through the 'source' tool. But i don't want to add the class manually everytime some one adds a new table.
23 replies
awcodes tiptap editor
Hmm i can't really figure out how this is used. I want to have a predefined css class on my tables.
What i did added a addclass.js:
Made an extensions.js and loaded in the addclass:
Than made a new class in
app\TiptapExtensions\AddClass.php
Also added the resources/js/tiptap/extensions.js
line to my vite.config and in my filament-tiptap-editor.php added this:
23 replies