This topic is locked

Style Available in rich text area

7/30/2006 1:36:02 AM
ASPRunnerPro General questions
K
kattraks author

I am interested in having some of my styles be available to the user when editing information contained in a Rich Text Area.
Currently, the values available are:

Paragraph

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5

Heading 6

Address

Formatted
I'd like to see some of my styles:

Page Title

Page Subtitle

etc.
Is it possible to do this?
Thanks.
-Kat

J
Jane 7/31/2006

Kat,
you can add your styles in the include/richtext.js file.

Locate following code snippet and add your code in it:

document.writeln(' <option value="">[Style]</option>');

document.writeln(' <option value="<p>">Paragraph</option>');

document.writeln(' <option value="<h1>">Heading 1 <h1></option>');

document.writeln(' <option value="<h2>">Heading 2 <h2></option>');

document.writeln(' <option value="<h3>">Heading 3 <h3></option>');

document.writeln(' <option value="<h4>">Heading 4 <h4></option>');

document.writeln(' <option value="<h5>">Heading 5 <h5></option>');

document.writeln(' <option value="<h6>">Heading 6 <h6></option>');

document.writeln(' <option value="<address>">Address <ADDR></option>');

document.writeln(' <option value="<pre>">Formatted <pre></option>');