awcodes / filament-tiptap-editor

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

Check if color isset on attribute object before accessing it #287

Closed jyrkidn closed 7 months ago

jyrkidn commented 7 months ago

Fixes also https://github.com/awcodes/filament-tiptap-editor/issues/286 I think.

But we had an issue where copying from Figma or Word added a <span> without attributes around some of the text and this check gave a 500. So adding the isset() check before accessing it fixes the server error.