awcodes / filament-tiptap-editor

A Rich Text Editor plugin for Filament Forms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when disabling the "color" Extension

lpeterke opened this issue · comments

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

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

Looks just fine!