Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Content Editor Discussions /

Forum for content editors and CMS users.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Insert <div> without HTML (mode)


Go to End


3 Posts   2425 Views

Avatar
suntrop

Community Member, 141 Posts

12 July 2010 at 6:00am

Does anybody know a way to insert HTML-DIV elements without the HTML edit mode?

I want my clients to be able to create divs just visually and choose - maybe from the list at the top - a CSS class. So they can insert different styled boxes etc.

Avatar
Devlin

Community Member, 344 Posts

16 July 2010 at 12:49am

Edited: 16/07/2010 12:49am

I think the best choice is to simply use the template plugin in TinyMCE. So you can predefine some templates and your users can select them from a select box.

wiki.moxiecode.com

Avatar
suntrop

Community Member, 141 Posts

18 July 2010 at 1:16am

JayDevlin, thanks for your help! Templates are just better than divs :)

Bey
suntrop