How to adjust customize image in rich text editor.
hello everyone. i am currently working with the rich text editor. i'm trying to adjust the image in the center of the text editor. But it's not working.
is there way to do it or some free plugin which can help in image customization.
4 Replies
what code did you try?
@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
ok thanks alot for taking your time to answer. i'll try it. let you know if i need any more guidance.