Add more style elements

5 views
Skip to first unread message

Michael Schlegel

unread,
Jan 12, 2017, 11:22:32 AM1/12/17
to django CMS developers
Is there a plan to add more semantic HTML5 elements to the "style" plugin? My question is related to the list of HTML5 elements which are listed here: http://www.w3schools.com/html/html5_semantic_elements.asp. Some of the them are already part of the "style" plugin but by far not all of them. 

Thanks & regards

Michael 

Angelo Dini

unread,
Jan 13, 2017, 2:29:03 AM1/13/17
to django CMS developers
Hallo Micheal, which style plugin are you using?
The officially supported djangocms-style (https://github.com/divio/djangocms-style) has a setting where you can override the defaults:

DJANGOCMS_STYLE_TAGS = ['div', 'article', 'section', 'header', 'footer',
                        'h1', 'h2', 'h3', 'h4', 'h5', 'h6']

It does not make sense to add all html tags as that would confuse the end-user. Just simple adapt the setting to your needs.

Cheers
Angelo
Reply all
Reply to author
Forward
0 new messages