예제 #1
0
 /**
  * Returns the real toolbar button names.
  *
  * @static
  * @return array
  */
 public static function tb_label_overrides()
 {
     if (!isset(self::$_tb_label_overrides)) {
         self::$_tb_label_overrides = array('PasteText' => 'Paste As Plain Text', 'PasteFromWord' => 'Paste from Word', 'Scayt' => 'Spell Check As You Type', 'RemoveFormat' => 'Remove Format', 'Strike' => 'Strike Through', 'NumberedList' => 'Insert/Remove Numbered List', 'BulletedList' => 'Insert/Remove Bulleted List', 'Outdent' => 'Decrease Indent', 'Indent' => 'Increase Indent', 'CreateDiv' => 'Create Div Container', 'HorizontalRule' => 'Insert Horizontal Line', 'About' => 'About CKEditor', 'MediaEmbed' => 'Embed Media', 'ReadMore' => 'Read More', 'ShowBlocks' => 'Show Blocks');
         $EE = get_instance();
         // -------------------------------------------
         //  'wygwam_tb_label_overrides' hook
         //   - Allow extensions to modify which toolbar items should be considered selects.
         //
         if ($EE->extensions->active_hook('wygwam_tb_label_overrides')) {
             self::$_tb_label_overrides = $EE->extensions->call('wygwam_tb_label_overrides', self::$_tb_label_overrides);
         }
         //
         // -------------------------------------------
     }
     return self::$_tb_label_overrides;
 }