awcodes / filament-tiptap-editor

A Rich Text Editor plugin for Filament Forms.
MIT License
251 stars 65 forks source link

TipTap removes <span> elements #345

Closed martinsjek closed 3 months ago

martinsjek commented 3 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 3 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.