FilamentF
Filament6mo 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>


Tested rendering with both:

{!! Filament\Forms\Components\RichEditor\RichContentRenderer::make($page->content)->toHtml() !!}


and

{!! $page->content !!}
screenshot.jpg
Was this page helpful?