Skip to content

Instantly share code, notes, and snippets.

@muskie9
Created November 12, 2015 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muskie9/4c781198cd0e361240dc to your computer and use it in GitHub Desktop.
Save muskie9/4c781198cd0e361240dc to your computer and use it in GitHub Desktop.
<?php
// TinyMCE Config
$config = HtmlEditorConfig::get('cms');
$config->disablePlugins('emotions', 'fullscreen');
$config->setButtonsForLine(1, 'formatselect,separator,bullist,numlist,
separator,bold,italic,sup,sub,separator,sslink,unlink,anchor,separator,ssmedia,pasteword,
separator,spellchecker,undo,redo,code');
$config->setButtonsForLine(2, 'tablecontrols');
$config->setButtonsForLine(3, '');
$config->setOptions(array(
'theme_advanced_blockformats' => 'p,h2,h3',
'paste_auto_cleanup_on_paste' => 'true',
'paste_remove_styles' => 'true',
'paste_strip_class_attributes' => 'all',
'paste_remove_spans' => 'true'
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment