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.


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

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

tinyMCE customization


3 Posts   1830 Views


13 July 2008 at 12:33pm (Last edited: 13 July 2008 12:33pm), Community Member, 3 Posts

hi there,

1. how to customize tinyMCE? i particulary need to add custom predefined css classes to the dropdown menuCMS

2. each time i manually modify HTML code in the editor, tags like <q> get wiped and <p> is added as default wrapper around the content. is there a way to modify this behavior?



14 July 2008 at 4:36pm Administrator, 679 Posts

I've put a couple of notes here, to get you started:


10 September 2008 at 10:20am Community Member, 63 Posts

Hi there,

I want to add a new style to the stylelist in the CMS. So I took a look into the HtmlEditorField.php

new HtmlEditorField_dropdown("FormatBlock", "formatSelect", array(
            "<p>" => _t('HtmlEditorField.FORMATP', "Paragraph", 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, '<span> tag'),
          "<strong>" => "bold", //<new

The test with the strong tag does not work. What i want to do is something like that. Click on a list item adds the following code -> <h3><span>My Headline</span></h3> Has anyone a Idea ??