awcodes / filament-tiptap-editor

A Rich Text Editor plugin for Filament Forms.
MIT License
261 stars 71 forks source link

Bug with custom blocks in recent version update #279

Closed Orrison closed 8 months ago

Orrison commented 8 months ago

Filament Version

3.1.27

Plugin Version

3.2.15

PHP Version

8.2.8

Problem description

It seems that the recent update in https://github.com/awcodes/filament-tiptap-editor/pull/277 causes an error with custom blocks.

Loading custom blocks in something like an edit page now throws an error like Undefined array key "text_input". text_input being our custom block.

Changing the code changed in #277 manually fixes the issue.

Expected behavior

Custom blocks should able to be loaded in the edit page with the TipTapEditor

Steps to reproduce

Implement a custom block like we did in https://github.com/canyongbs/advisingapp/blob/main/app-modules/form/src/Filament/Blocks/TextInputFormFieldBlock.php

Create a new item with this custom block.

Load it in the TipTapEditor via something like an edit page.

Reproduction repository

No response

Relevant log output

No response