Michał Burdziak
Michał Burdziak
FFilament
Created by Michał Burdziak on 3/8/2025 in #❓┊help
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?
2 replies
FFilament
Created by Michał Burdziak on 3/7/2025 in #❓┊help
Relation Manager Form - Adjust size/width
No description
8 replies