Created
January 27, 2013 16:40
-
-
Save dospuntocero/4649177 to your computer and use it in GitHub Desktop.
dospuntoceroCMS HtmlEditorConfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is this for 2.4 or 3.0?