Richtext

Hi folks, is it possible to set target _blank?
13 Replies
Vp
Vp2y ago
Yes..
st4rcruz3r
st4rcruz3rOP2y ago
Great ... and how? Cuz in the backend, when trying to add a link it dowsn't offer me the choice
Vp
Vp2y ago
Please explain first when you are going to use.. table, form etc.. with an example (code) will be better
st4rcruz3r
st4rcruz3rOP2y ago
Forms\Components\RichEditor::make('text') ->required() ->disableAllToolbarButtons() ->enableToolbarButtons([ 'bold', 'bulletList', 'italic', 'link', ]) Now in the backend i cant choose to open it _self or _blank
Vp
Vp2y ago
Sorry folks, no idea 😀
TextInput::make('domain')
->suffixAction(fn (?string $state): Action =>
Action::make('visit')
->icon('heroicon-s-external-link')
->url(
filled($state) ? "https://{$state}" : null,
shouldOpenInNewTab: true,
),
)
TextInput::make('domain')
->suffixAction(fn (?string $state): Action =>
Action::make('visit')
->icon('heroicon-s-external-link')
->url(
filled($state) ? "https://{$state}" : null,
shouldOpenInNewTab: true,
),
)
In text input it's there but int rich editor i don't know..
st4rcruz3r
st4rcruz3rOP2y ago
but ur first answer was "Yes.." Very smart
Dan Harrin
Dan Harrin2y ago
he cant help your question with no detail bro leave him alone
st4rcruz3r
st4rcruz3rOP2y ago
Thanks for the help So there is no way?
Vp
Vp2y ago
Sorry for disappoint you, I know for textinput like i post..
st4rcruz3r
st4rcruz3rOP2y ago
ok, thx So there is no way to have the Richtext Form give the choice "_self" or "_blank" when linking?
Dan Harrin
Dan Harrin2y ago
see if #tinyeditor or #tiptap supports it maybe
st4rcruz3r
st4rcruz3rOP2y ago
thx for the help
Want results from more Discord servers?
Add your server