awcodes / filament-tiptap-editor

A Rich Text Editor plugin for Filament Forms.
MIT License
290 stars 79 forks source link

[3.x] Json output return Column 'content' cannot be null on save #156

Closed DanielSpravtsev closed 1 year ago

DanielSpravtsev commented 1 year ago

When editor output set to Json editor returns on save:

Column 'content' cannot be null

If set migration column to nullable, after save - the column is null

Migration column was set to json Model casted to array. Also tried with json, same error.

Environment: Filament panel 3.0.39 tiptap 3.0.0 beta-1

Component example:

TiptapEditor::make('content')
     ->output(TiptapOutput::Json)
     ->required()
     ->columnSpan(2),
awcodes commented 1 year ago

Yep. Still trying to figure this one out.

awcodes commented 1 year ago

This will be fixed in the next release. Thanks.