When using the Bulma CSS library, the trix-editor and toolbar are garbled. This appears to be due to the styles clashing with one another.
JSFiddle: https://jsfiddle.net/2mthwvfn/
The problem is this .icon style from Bulma: https://github.com/jgthms/bulma/blob/master/sass/elements/icon.sass#L3
You can fix it in your app by ensuring that style isn't applied to Trix buttons:
trix-toolbar .button_group button.icon,
trix-toolbar .button_group input[type=button].icon {
display: initial;
}
Thanks @javan. Did you notice also in your demo, some of the toolbar buttons don't apply any styling? From what I can see, the Title, Quote, Bullet and Numbers buttons have no effect. Pretty sure this also has to do with the fact that Bulma is applying styles to the elements inside of the trix editor.
Trix is generating the correct HTML (<h1>, <blockquote>, etc.) and bulma is resetting them to appear unstyled. You'll need to decide how to handle that in your app.
Thanks, understood. I'll ponder how to deal with this.
For anyone running into this issue, if you wrap the rich_text_area in a class="content" it will correctly display the title, quote, bullets content.
Thank you @npresco been trying to figure this out.
Most helpful comment
For anyone running into this issue, if you wrap the
rich_text_areain aclass="content"it will correctly display the title, quote, bullets content.