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.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Setting Available Styles


Reply


795 Views

Avatar
toddm

Community Member, 15 Posts

7 October 2008 at 3:46am

Edited: 07/10/2008 3:47am

Hi,

Wondering how to add options for addtional styles to the CMS Editor-

I've modified the HtmlEditorField:

         new HtmlEditorField_dropdown("FormatBlock", "formatSelect", array(
            "<p>" => _t('HtmlEditorField.FORMATP', "Paragraph", PR_MEDIUM, '<p> tag'),
          "<p class='paragraph2'>" => _t('HtmlEditorField.FORMATP2', "Paragraph 2", PR_MEDIUM, '<p> tag'),
            "<address>" => _t('HtmlEditorField.FORMATADDR', "Address", PR_MEDIUM, '<address> tag'),
            // "<pre>" => "Preformatted",_t('HtmlEditorField.FORMATADDR', "Address", PR_MEDIUM, '<address> tag'),
            "<h1>" => _t('HtmlEditorField.FORMATH1', "Heading 1", PR_MEDIUM, '<h1> tag'),
            "<h2>" => _t('HtmlEditorField.FORMATH2', "Heading 2", PR_MEDIUM, '<h2> tag'),
            "<h3>" => _t('HtmlEditorField.FORMATH3', "Heading 3", PR_MEDIUM, '<h3> tag'),
            "<h4>" => _t('HtmlEditorField.FORMATH4', "Heading 4", PR_MEDIUM, '<h4> tag'),
            "<h5>" => _t('HtmlEditorField.FORMATH5', "Heading 5", PR_MEDIUM, '<h5> tag'),
            "<h6>" => _t('HtmlEditorField.FORMATH6', "Heading 6", PR_MEDIUM, '<h6> tag'),
         )),

but when I set the content to Paragraph 2, the "class='paragraph2'" is not coming through.

Any ideas?

Todd