I have ckeditor installed via the WYSIWYG module. I need to select a group of paragraphs and give surround them with a div that has a class and end up with this

<div class="my_class">
<p>test text 1</p>
<p>test text 2</p>
<p>test text 3</p>
<p>test text 4</p>

this div could also surround other elements like links, lists, etc. I have no problem adding custom styles but can't quite add any custom formats.

1 Answer 1


This module is maybe what you're looking for


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.