[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/libraries/jquery/ckeditor/plugins/docprops/ -> plugin.js (source)

   1  /**
   2   * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
   3   * For licensing, see LICENSE.md or http://ckeditor.com/license
   4   */
   5  
   6  CKEDITOR.plugins.add( 'docprops', {
   7      requires: 'wysiwygarea,dialog',
   8      lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE%
   9      icons: 'docprops,docprops-rtl', // %REMOVE_LINE_CORE%
  10      hidpi: true, // %REMOVE_LINE_CORE%
  11      init: function( editor ) {
  12          var cmd = new CKEDITOR.dialogCommand( 'docProps' );
  13          // Only applicable on full page mode.
  14          cmd.modes = { wysiwyg: editor.config.fullPage };
  15          cmd.allowedContent = {
  16              body: {
  17                  styles: '*',
  18                  attributes: 'dir'
  19              },
  20              html: {
  21                  attributes: 'lang,xml:lang'
  22              }
  23          };
  24          cmd.requiredContent = 'body';
  25  
  26          editor.addCommand( 'docProps', cmd );
  27          CKEDITOR.dialog.add( 'docProps', this.path + 'dialogs/docprops.js' );
  28  
  29          editor.ui.addButton && editor.ui.addButton( 'DocProps', {
  30              label: editor.lang.docprops.label,
  31              command: 'docProps',
  32              toolbar: 'document,30'
  33          });
  34      }
  35  });


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1