© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
1 reply
Michał Burdziak

RichEditor is removing inline styles

I got html in database, for example:

<p style='margin: 0 0 35px 0; padding: 0; font-weight: 400; font-size: clamp(40px, 2vh, 54px);line-height: clamp(40px, 2vh, 54px);letter-spacing: -5%;color: #000E5F;'><span style='color: #25AAE9;'>Who</span> <strong>We</strong> Are?</p>
<p style='margin: 0 0 35px 0; padding: 0; font-weight: 400; font-size: clamp(40px, 2vh, 54px);line-height: clamp(40px, 2vh, 54px);letter-spacing: -5%;color: #000E5F;'><span style='color: #25AAE9;'>Who</span> <strong>We</strong> Are?</p>


After loading it into RichEditor, it removes inline styles, in this example, this is <trix-editor> output contents:
<p><!--block-->Who <strong>We</strong> Are?</p>
<p><!--block-->Who <strong>We</strong> Are?</p>


Is there a possibility to force RichEditor to not remove inline styles and render them correctly?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Custom buttons/styles for RichEditor?
FilamentFFilament / ❓┊help
2y ago
Add styles to RichEditor images
FilamentFFilament / ❓┊help
2y ago
RichEditor content is ignored
FilamentFFilament / ❓┊help
5mo ago
How to remove these inline styles (copy location returns undefined)
FilamentFFilament / ❓┊help
2y ago