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, Ed, biapar, Willr, Ingo

tinyMCE customization

Go to End

3 Posts   2185 Views


Community Member, 3 Posts

13 July 2008 at 12:33pm

Edited: 13/07/2008 12:33pm

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?



Administrator, 690 Posts

14 July 2008 at 4:36pm

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


Community Member, 63 Posts

10 September 2008 at 10:20am

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 ??