/[drupal]/contributions/modules/fckeditor/fckeditor.config.js
ViewVC logotype

Contents of /contributions/modules/fckeditor/fckeditor.config.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download) (as text)
Tue Feb 12 17:55:47 2008 UTC (21 months, 2 weeks ago) by wwalc
Branch: MAIN
CVS Tags: DRUPAL-6--1-1-BETA, DRUPAL-6--1-1-BETA2, HEAD
Changes since 1.5: +2 -2 lines
File MIME type: text/javascript
fixed the justify issue
1 // $Id: fckeditor.config.js,v 1.5 2007/11/15 16:15:47 wwalc Exp $
2
3 /*
4 Define as many toolbars as you need, you can change toolbar names
5 DrupalBasic will be forced on some smaller textareas (if enabled)
6 if you change the name of DrupalBasic, you have to update
7 FCKEDITOR_FORCE_SIMPLE_TOOLBAR_NAME in fckeditor.module
8 */
9
10 /*
11 This toolbar is dedicated to users with "Full HTML" access
12 some of commands used here (like 'FontName') use inline styles,
13 which unfortunately are stripped by "Filtered HTML" filter
14 */
15 FCKConfig.ToolbarSets["DrupalFull"] = [
16 ['Source'],
17 ['Cut','Copy','Paste','PasteText','PasteWord'],
18 ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
19 ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
20 ['OrderedList','UnorderedList','-','Outdent','Indent'],
21 //as of FCKeditor 2.5 you can use also 'Blockquote' button
22 //['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'],
23 ['JustifyLeft','JustifyCenter','JustifyRight'],
24 ['Link','Unlink','Anchor'],
25 ['Image','Flash','Table','Rule','SpecialChar','DrupalBreak'],
26 //uncomment this line to enable teaser break and page break buttons
27 //['Image','Flash','Table','Rule','SpecialChar','DrupalBreak','DrupalPageBreak'],
28 '/',
29 ['FontFormat','FontName','FontSize'],
30 ['TextColor','BGColor']
31 ] ;
32
33 FCKConfig.ToolbarSets["DrupalBasic"] = [
34 ['FontFormat','-','Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink', 'Image']
35 ] ;
36
37 //This toolbar should work fine with "Filtered HTML" filter
38 FCKConfig.ToolbarSets["DrupalFiltered"] = [
39 ['Source'],
40 ['Cut','Copy','Paste','PasteText','PasteWord'],
41 ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
42 //as of FCKeditor 2.5 you can use also 'Blockquote' button
43 //['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'],
44 ['Link','Unlink','Anchor'],
45 ['Image','Flash','Table','Rule','Smiley','SpecialChar'],
46 '/',
47 ['FontFormat'],
48 ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
49 ['OrderedList','UnorderedList','-','Outdent','Indent'],
50 ['JustifyLeft','JustifyCenter','JustifyRight','DrupalBreak'],
51 ] ;
52
53 //as of FCKeditor 2.5 ShowBlocks command is available
54 if ( FCK.GetData ) {
55 FCKConfig.ToolbarSets["DrupalFull"][10].push('ShowBlocks') ;
56 FCKConfig.ToolbarSets["DrupalFiltered"][9].push('ShowBlocks') ;
57 }
58 // Protect PHP code tags (<?...?>) so FCKeditor will not break them when
59 // switching from Source to WYSIWYG.
60 // Uncommenting this line doesn't mean the user will not be able to type PHP
61 // code in the source. This kind of prevention must be done in the server side
62 // (as does Drupal), so just leave this line as is.
63 FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code
64
65 //uncomment these three lines to enable teaser break and page break plugins
66 //remember to add 'DrupalBreak' and 'DrupalPageBreak' buttons to the toolbar
67 FCKConfig.PluginsPath = '../../plugins/' ;
68 FCKConfig.Plugins.Add( 'drupalbreak' ) ;
69 //FCKConfig.Plugins.Add( 'drupalpagebreak' ) ;
70
71 var _FileBrowserLanguage = 'php' ;
72 var _QuickUploadLanguage = 'php' ;
73
74 // This overrides the IndentLength/IndentUnit settings.
75 FCKConfig.IndentClasses = ['rteindent1','rteindent2','rteindent3','rteindent4'] ;
76
77 // [ Left, Center, Right, Justified ]
78 FCKConfig.JustifyClasses = ['rteleft','rtecenter','rteright','rtejustify'] ;

  ViewVC Help
Powered by ViewVC 1.1.2