Default WYSIWYG values

3 posts by 2 authors in: Forums > CMS Builder
Last Post: November 13, 2009   (RSS)

Re: [jtedescojam] Default WYSIWYG values

By Damon - November 13, 2009

Hi,


I would like to pre-format text in the default value of the wysiwyg area. but the section editor doesn't give you the wysiwyg to apply styles. If I am able to do this.. the client would create a new listing and see the pre-formated text, and just just have to change what they want to change and not have to worry about the classes and styles.


Yes, you can do this by setting up default styled content for a field and here are the steps:

1. Admin > Section Editors - open up Listings section.
2. Click modify for the wysiwyg field in the Listings section that you want to add default styled content.
3. In the Default Value text area, paste in your html code. For example
<h2>Hello World</h2>
<p class="example1">orem ipsum dolor sit amet, consectetur adipiscing elit. Nam nec sapien ligula. Etiam urna ligula, elementum in dapibus vitae, dictum ut neque. </p>

<p class="example2">orem ipsum dolor sit amet, consectetur adipiscing elit. Nam nec sapien ligula. Etiam urna ligula, elementum in dapibus vitae, dictum ut neque. Maecenas eu massa et enim sodales eleifend. </p>


4. Add the styles to both your site CSS file and the CSS file for WYSIWYG editor here:
\lib\wysiwyg.css (line 32)

Now, when a user creates a new listing, styled default content will appear which they can modify.

Hope that helps and makes sense. Let me know if you have any questions.
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Damon] Default WYSIWYG values

perfect
John Tedesco

Creative Director



JAM Graphics