awcodes / filament-tiptap-editor

A Rich Text Editor plugin for Filament Forms.
MIT License
297 stars 86 forks source link

TipTap removes <span> elements #345

Closed martinsjek closed 8 months ago

martinsjek commented 8 months ago

Filament Version

3.2.57

Plugin Version

3.2.25

PHP Version

8.3

Problem description

Tip does not allow <span> tags as it removes them when i add it in "Source code".

It also removes <div> and <iframe> tags.

Expected behavior

Allow tags

Steps to reproduce

All tags in "Source code" editor

Reproduction repository

No response

Relevant log output

No response

awcodes commented 8 months ago

This is part of the underlying Tiptap package and how Prosemirror works under the hood.

You would have to make custom Tiptap extensions to handle them.