Skip to content

Override table output #7065

Answered by alexander-schranz
VoDmAl asked this question in Q&A
May 2, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

@VoDmAl Have a look at the following twing twig extension: https://github.com/sulu/web-twig/blob/2.5/docs/editor.md which allows you to add css classes to tags to that output. {{ content.someEditor|editor_classes({table: 'special-table'}) }}

Still if you are control of your CSS you can also just do:

<div class="editor"> 
    {{ content.someEditor|raw }}
</div>

And then create css with:

.editor table {
     // ..
}

To add some additional CSS styles.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@VoDmAl
Comment options

@alexander-schranz
Comment options

Answer selected by VoDmAl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants