Using TipTap Paste Rules #564
Unanswered
richdynamix
asked this question in
Q&A
Replies: 1 comment
-
I've started looking into implementing this but there's currently some bugs to work out to make it work correctly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At present when one of our news writers paste content in from a Google Doc or Word document, the editor preserves the styles from source, it adds in line styles to the html tags and this is unwanted behaviour as it messes with the website frontend styles.
When looking at Statamic and their Bard (tiptap extended) field, which does not preserve styles pasted from other sources, they use a "Paste Rules" flag as an option which they say "Enables Markdown-style shortcuts when pasting content."
I looked at the source code and they tiptap documentation but it appears the filament plugin does not allow this option within the JS that creates the new Editor.
I have tried to use an Alpine event to mimic this with no luck. Has anyone had a similar issue they managed to resolve? What would the implications be for the plugin to have this functionality added?
Beta Was this translation helpful? Give feedback.
All reactions