Skip to content

Instantly share code, notes, and snippets.

@dospuntocero
Created January 27, 2013 16:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dospuntocero/4649177 to your computer and use it in GitHub Desktop.
Save dospuntocero/4649177 to your computer and use it in GitHub Desktop.
dospuntoceroCMS HtmlEditorConfig
class DospuntoceroCMS extends LeftAndMainExtension{
function alternateAccessCheck(){
// html display simplification
$lines = array('pastetext','ssmedia','separator','bold','italic','underline','strikethrough','hr','separator','styleselect','formatselect','separator','bullist','numlist','blockquote','sslink','unlink','anchor','separator','code');
$config = HtmlEditorConfig::get('cms');
$config->setButtonsForLine(1, $lines);
$config->setButtonsForLine(2, 'tablecontrols');
$config->setButtonsForLine(3, null);
HtmlEditorConfig::get('cms')->setOption('theme_advanced_blockformats', 'p,h1,h2,h3,h4');
}
}
@sunnysideup
Copy link

do you need to add any other settings ?

@sunnysideup
Copy link

is this for 2.4 or 3.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment