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