Ali Hassan
How to adjust customize image in rich text editor.
@Leandro Ferreira try to do this
Forms\Components\RichEditor::make('description')
->required()
->columnSpanFull()
->toolbarButtons([
'bold',
'italic',
'underline',
'strike',
'link',
'heading',
'blockquote',
'bulletList',
'orderedList',
'codeBlock',
'image',
])
->fileAttachmentsDisk('public')
->fileAttachmentsDirectory('news-events/content') ->extraInputAttributes([ 'style' => ' img { display: block !important; margin-left: auto !important; margin-right: auto !important; } ', ]), but it didn't work out
->fileAttachmentsDirectory('news-events/content') ->extraInputAttributes([ 'style' => ' img { display: block !important; margin-left: auto !important; margin-right: auto !important; } ', ]), but it didn't work out
5 replies