[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/ckeditor/ -> ckeditor.styles.js (source)

   1  /*
   2  Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
   3  For licensing, see LICENSE.html or http://ckeditor.com/license
   4  */
   5  
   6  /*
   7   * This file is used/requested by the 'Styles' button.
   8   * The 'Styles' button is not enabled by default in DrupalFull and DrupalFiltered toolbars.
   9   */
  10  if(typeof(CKEDITOR) !== 'undefined') {
  11      CKEDITOR.addStylesSet( 'drupal',
  12      [
  13              /* Block Styles */
  14  
  15              // These styles are already available in the "Format" drop-down list, so they are
  16              // not needed here by default. You may enable them to avoid placing the
  17              // "Format" drop-down list in the toolbar, maintaining the same features.
  18              /*
  19              { name : 'Paragraph'        , element : 'p' },
  20              { name : 'Heading 1'        , element : 'h1' },
  21              { name : 'Heading 2'        , element : 'h2' },
  22              { name : 'Heading 3'        , element : 'h3' },
  23              { name : 'Heading 4'        , element : 'h4' },
  24              { name : 'Heading 5'        , element : 'h5' },
  25              { name : 'Heading 6'        , element : 'h6' },
  26              { name : 'Preformatted Text', element : 'pre' },
  27              { name : 'Address'            , element : 'address' },
  28              */
  29  
  30              { name : 'Blue Title'        , element : 'h3', styles : { 'color' : 'Blue' } },
  31              { name : 'Red Title'        , element : 'h3', styles : { 'color' : 'Red' } },
  32  
  33              /* Inline Styles */
  34  
  35              // These are core styles available as toolbar buttons. You may opt enabling
  36              // some of them in the "Styles" drop-down list, removing them from the toolbar.
  37              /*
  38              { name : 'Strong'            , element : 'strong', overrides : 'b' },
  39              { name : 'Emphasis'            , element : 'em'    , overrides : 'i' },
  40              { name : 'Underline'        , element : 'u' },
  41              { name : 'Strikethrough'    , element : 'strike' },
  42              { name : 'Subscript'        , element : 'sub' },
  43              { name : 'Superscript'        , element : 'sup' },
  44              */
  45  
  46              { name : 'Marker: Yellow'    , element : 'span', styles : { 'background-color' : 'Yellow' } },
  47              { name : 'Marker: Green'    , element : 'span', styles : { 'background-color' : 'Lime' } },
  48  
  49              { name : 'Big'                , element : 'big' },
  50              { name : 'Small'            , element : 'small' },
  51              { name : 'Typewriter'        , element : 'tt' },
  52  
  53              { name : 'Computer Code'    , element : 'code' },
  54              { name : 'Keyboard Phrase'    , element : 'kbd' },
  55              { name : 'Sample Text'        , element : 'samp' },
  56              { name : 'Variable'            , element : 'var' },
  57  
  58              { name : 'Deleted Text'        , element : 'del' },
  59              { name : 'Inserted Text'    , element : 'ins' },
  60  
  61              { name : 'Cited Work'        , element : 'cite' },
  62              { name : 'Inline Quotation'    , element : 'q' },
  63  
  64              { name : 'Language: RTL'    , element : 'span', attributes : { 'dir' : 'rtl' } },
  65              { name : 'Language: LTR'    , element : 'span', attributes : { 'dir' : 'ltr' } },
  66  
  67              /* Object Styles */
  68  
  69              {
  70                      name : 'Image on Left',
  71                      element : 'img',
  72                      attributes :
  73                      {
  74                              'style' : 'padding: 5px; margin-right: 5px',
  75                              'border' : '2',
  76                              'align' : 'left'
  77                      }
  78              },
  79  
  80              {
  81                      name : 'Image on Right',
  82                      element : 'img',
  83                      attributes :
  84                      {
  85                              'style' : 'padding: 5px; margin-left: 5px',
  86                              'border' : '2',
  87                              'align' : 'right'
  88                      }
  89              }
  90      ]);
  91  }


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7