skip to Main Content

Here "body" is column name , the image added in rich editor is not stored

 RichEditor::make('body')
            ->fileAttachmentsDisk('s3')
            ->fileAttachmentsDirectory('attachments')
            ->fileAttachmentsVisibility('public')
            ->columnSpan(2)
            ->required(),

2

Answers


  1. Chosen as BEST ANSWER

    Alternate Editor we use to acheive same functionality

    FormsComponentsMarkdownEditor::make('body')
                    ->required()
                    ->columnSpan('full'),
    

  2. Solution is here for RichText Editor Filament
    Just add
    RichEditor::make(‘body’),
    Where body is column name.
    Dont need to add these, this apply restriction to RichText Editor, which make failure to add image in content body

    ->fileAttachmentsDisk('s3')
                ->fileAttachmentsDirectory('attachments')
                ->fileAttachmentsVisibility('public')
                ->columnSpan(2)
                ->required(),
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search