/** * Returns toolbar button groupings, based on CKEditor's default "Full" toolbar. * * @static * @return array */ public static function tb_groups() { if (!isset(self::$_tb_groups)) { self::$_tb_groups = array(array('Source'), array('Templates'), array('Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'), array('Undo', 'Redo'), array('Scayt'), array('Bold', 'Italic', 'Underline', 'Strike'), array('Subscript', 'Superscript'), array('RemoveFormat'), array('NumberedList', 'BulletedList'), array('Outdent', 'Indent'), array('JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'), array('Blockquote', 'CreateDiv'), array('Link', 'Unlink', 'Anchor'), array('Image', 'Table', 'HorizontalRule', 'SpecialChar', 'MediaEmbed'), array('ReadMore'), array('Styles'), array('Format'), array('TextColor', 'BGColor'), array('Maximize', 'ShowBlocks')); $EE = get_instance(); // ------------------------------------------- // 'wygwam_tb_groups' hook // - Allow extensions to modify the available toolbar groups // if ($EE->extensions->active_hook('wygwam_tb_groups')) { self::$_tb_groups = $EE->extensions->call('wygwam_tb_groups', self::$_tb_groups); } // // ------------------------------------------- } return self::$_tb_groups; }