09/03/2017 2:47pm

PHP | Problem - HTMLEditorfield Extra buttons


/*

|--------------------------------------------------------------------------
| HTMLEditorField
|--------------------------------------------------------------------------
*/

HtmlEditorConfig::get('cms')->setButtonsForLine(1, []);
HtmlEditorConfig::get('cms')->setButtonsForLine(2, []);
HtmlEditorConfig::get('cms')->setButtonsForLine(3, []);

HtmlEditorConfig::get('cms')->disablePlugins('table', 'contextmenu');
HtmlEditorConfig::get('cms')->setOption('theme_advanced_blockformats', 'p,h2,h3,h4');
HtmlEditorConfig::get('cms')->setButtonsForLine(1, ['formatselect', 'separator', 'bullist', 'numlist', 'separator', 'justifyleft', 'justifycenter', 'justifyright', 'separator', 'image', 'separator', 'sslink', 'unlink', 'separator', 'bold', 'italic', 'blockquote', 'separator', 'pastetext', 'pasteword', 'separator', 'code', 'fullscreen', 'anchor']);