Add css class to <P> tag as default on the rich text editor
230 views
Skip to first unread message
Juan Simon Rico Jimenez
unread,
Dec 2, 2014, 6:00:14 PM12/2/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to hippo-c...@googlegroups.com
Hello,
I have a requirement to set the class for all paragraphs in a text to an custom defined class, to add the text i'm using the richtext editor on the cms, but i need all the <p> tags to have this class does anyone know how to do this... i tried using the configuration of the CKeditor adding this to the ckeditor.config.overlayed.json property of the richtext field:
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to hippo-c...@googlegroups.com
Hi Juan,
Hippo uses it's own CKEditor styles set definition, with by default a
plain 'p' tag for the 'Normal' style. You can replace the default
Hippo styles with your own by adding a custom styles set definition
and using that in your HTML field(s). In your custom styles set you
can then define that, for example, the 'Normal' style should be a 'p'
tag with a class 'paragraph'.