Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HTML text editor #1709

Open
alexanderbuergin opened this issue Feb 5, 2024 · 1 comment
Open

Add HTML text editor #1709

alexanderbuergin opened this issue Feb 5, 2024 · 1 comment
Milestone

Comments

@alexanderbuergin
Copy link

What are you trying to do?

The option to work directly in HTML with this text editor would be very practical.

Could you add this option?

Bildschirmfoto 2024-02-05 um 13 48 39

What's your proposed solution?

Add a HTML button to the RTF Editor

Additional context

No response

@engram-design
Copy link
Member

While we can add the option to edit HTML (like we do with Vizy) the real issue is that it probably won't let you do what you want. We use Tiptap for the rich text editors for Formie, like Vizy does. That in turn uses ProseMirror. It has a very strict schema on what sort of content can be included in the editor.

For example, if you tried to add something like <span class="my-class">Some Text</span> that element wouldn't be saved, as it's not something that's been added to the schema and is "allowed" by ProseMirror. Even just manipulating existing tags like the anchor tag to include other attributes won't work, because those attributes haven't been allowed in the schema.

This is both a blessing and curse in situations like this, where you might expect the traditional Redactor/CKEditor/etc approach where you freely edit HTML.

I'll see what I can do about this, but that's the background so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants