awcodes / filament-tiptap-editor

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

Crash when disabling the "color" Extension #286

Closed lpeterke closed 7 months ago

lpeterke commented 8 months ago

Filament Version

v3.0.19

Plugin Version

v2.0.0

PHP Version

8.3.0

Problem description

Undefined property: stdClass::$color at FilamentTiptapEditor \ Extensions\ Extensions\Color:31

Expected behavior

No crash :D

Steps to reproduce

I am not using the color extension, so I don't know why the error occurs. This is the config that I am using for the editor:

['heading', '|', 'bold', 'italic', 'underline', '|', 'align-left', 'align-center', 'align-right', 'align-justify', '|', 'bullet-list', 'ordered-list', '|', 'link', 'media', 'oembed' , '|', 'source']

Adding the "code" extension to the array solves the issue.

Reproduction repository

No response

Relevant log output

No response

awcodes commented 7 months ago

Let me know if the latest release resolves this for you. Please.

lpeterke commented 7 months ago

Looks just fine!