F
Filament4mo ago
Darpan

RichEditor (tiptap) link always adds target="_blank" regardless of "open in new tab" option

In Filament 4.x beta, using the new Tiptap rich text editor, adding a link always results in target="_blank" being added, even if the "open in new tab" checkbox is unchecked.
<p>Hello <a target="_blank" rel="noopener noreferrer nofollow" href="https://example.com/">world</a></p>
<p>Hello <a target="_blank" rel="noopener noreferrer nofollow" href="https://example.com/">world</a></p>
Tested rendering with both:
{!! Filament\Forms\Components\RichEditor\RichContentRenderer::make($page->content)->toHtml() !!}
{!! Filament\Forms\Components\RichEditor\RichContentRenderer::make($page->content)->toHtml() !!}
and
{!! $page->content !!}
{!! $page->content !!}
No description
1 Reply
LeandroFerreira
LeandroFerreira4mo ago
bug I think. Could you please open an issue on Github?

Did you find this page helpful?