Richtext

Hi folks, is it possible to set target _blank?
13 Replies
Vp
Vp16mo ago
Yes..
st4rcruz3r
st4rcruz3r16mo ago
Great ... and how? Cuz in the backend, when trying to add a link it dowsn't offer me the choice
Vp
Vp16mo ago
Please explain first when you are going to use.. table, form etc.. with an example (code) will be better
st4rcruz3r
st4rcruz3r16mo 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
Vp16mo 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
st4rcruz3r16mo ago
but ur first answer was "Yes.." Very smart
Dan Harrin
Dan Harrin16mo ago
he cant help your question with no detail bro leave him alone
st4rcruz3r
st4rcruz3r16mo ago
Thanks for the help So there is no way?
Vp
Vp16mo ago
Sorry for disappoint you, I know for textinput like i post..
st4rcruz3r
st4rcruz3r16mo ago
ok, thx So there is no way to have the Richtext Form give the choice "_self" or "_blank" when linking?
Dan Harrin
Dan Harrin16mo ago
see if #tinyeditor or #tiptap supports it maybe
st4rcruz3r
st4rcruz3r16mo ago
thx for the help
Want results from more Discord servers?
Add your server