Jump to content


Removing the 'Format' drop down menu


  • You cannot reply to this topic
1 reply to this topic

#1 designer

    Etomite Forum Newbie

  • Member
  • 9 posts

Posted 08 September 2006 - 04:52 PM

Hi,

I've managed to limit the buttons on the TinyMCE panel to the ones I need, but I cannot find how to remove the Format drop down menu.....please help!

Many thanks in advance.

#2 roberts-end

    Etomite Forum Newbie

  • Member
  • 9 posts

Posted 03 November 2006 - 03:20 PM

Just been looking at this myself - wanted to force editors to stick with approved styles for the site. Also needed a couple of patches to get things working properly.

The setup is done in the file manager\actions\dynamic\mutate_content.dynamic.action.php

At about line 616:

[indent]
<!-- tinyMCE -->
<?php
} elseif($which_editor==1) {
//RWS: Bug Fix: http://www.etomite.com/lofiversion/....php?t4951.html
//$cssPath = !empty($tiny_css_path) ? $tiny_css_path : "";
//$cssSelectors = !empty($tiny_css_selectors) ? $tiny_css_selectors : "theme_advanced_styles";
$cssPath = !empty($tiny_css_path) ? "content_css : \"$tiny_css_path\",\n" : "";
$cssSelectors = !empty($tiny_css_selectors) ? "theme_advanced_styles : \"$tiny_css_selectors\",\n" : "";
?>
[/indent]


At about line 650, try changes along the following lines:


[indent]
// theme_advanced_buttons1_add_before : "save,newdocument,separator",
// theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor,backcolor",

// theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
// theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,print,separator,ltr,rtl,separator,fu
llscreen,ibrowser",
theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,fullscreen,ibrowser",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
// RWS Bug Fix: http://www.etomite.com/lofiversion/....php?t4951.html
// content_css : "example_full.css",
<?php echo($cssSelectors); ?>
<?php echo($cssPath);?> // End bug fix
[/indent]


If not already done, you may also like to make the patch described in:

http://www.etomite.com/lofiversion/....php?t5487.html





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users