awcodes / filament-tiptap-editor

A Rich Text Editor plugin for Filament Forms.
MIT License
250 stars 64 forks source link

Setting gridLayouts() Does Not Restrict Grid Builder Options #410

Closed onairmarc closed 3 weeks ago

onairmarc commented 3 weeks ago

Filament Version

v3.2.86

Plugin Version

v3.3.5

PHP Version

PHP 8.3.7

Problem description

When setting the gridLayouts() method to be gridLayouts([two-columns]) no change happens in the Grid Builder

Expected behavior

Based on the documentation, I'm expecting the Grid Builder content to be replaced with a drop-down that only allows the two-columns option. Instead, no change is occurring, and I can still create unlimited columns. Is there something I'm missing?

Steps to reproduce

Create the following TipTapEditor:

TiptapEditor::make('body_content')
                    ->label('Content')
                    ->profile('default')
                    ->maxContentWidth('5xl')
                    ->gridLayouts([
                        'two-columns'
                    ]);

Reproduction repository

No response

Relevant log output

No response

awcodes commented 3 weeks ago

'grid' and 'grid-builder' are 2 separate tools.

Screenshot 2024-06-14 at 12 55 52 PM