TipTap merge tags with HTML
Is it possible to put HTML in the merge tag replacements for the tiptap editor? Seems like it's always escaping whatever I put in.
3 Replies
I did some digging and found that it is not so I've put in a PR to allow it https://github.com/filamentphp/filament/pull/17437
Hopefully it will be deemed worthy of merging.
GitHub
[4.x] Feat: Add RawHtmlMergeTagExtension for rendering unescaped HT...
Description
Adds support for HTML content in Rich Editor merge tags using Laravel's Htmlable interface:
Automatically detects when merge tag values implement Laravel's Htmlable int...
For my own sanity, what is the use case vs a custom block? Merge tags are typically inline elements (ie text replacements)
For things like inserting a link to something or some other inline html element that wouldn't really fix the scope of a full block.