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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

customing TinyMCE doesn't work ?


Reply


2 Posts   1208 Views

Avatar
snaip

Community Member, 180 Posts

3 October 2009 at 3:09am

hi

i can't modify TinyMCE

in HtmlEditorField.php i try modify

new HtmlEditorField_dropdown("mceSetCSSClass", "styleSelect", array(
   "mceContentBody" => "mceContentBody",
)),


and

new HtmlEditorField_dropdown("FormatBlock", "formatSelect", array(
            "<p>" => _t('HtmlEditorField.FORMATP', "Paragraph", PR_MEDIUM, '<p> 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'),
            "<address>" => _t('HtmlEditorField.FORMATADDR', "Address", PR_MEDIUM, '<address> tag'),
            "<pre>" => _t('HtmlEditorField.FORMATPRE', "Preformatted", PR_MEDIUM, '<pre> tag'),

by adding some new elements but it doesnt work :((

i have SS 2.3.2

Avatar
snaip

Community Member, 180 Posts

5 October 2009 at 4:17am

any idea ?