add fckeditor configuration
git-svn-id: https://svn.libreccm.org/ccm/trunk@58 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
02b52f11ac
commit
a6c0d33529
|
|
@ -0,0 +1,138 @@
|
|||
/*
|
||||
* FCKeditor - The text editor for internet
|
||||
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
|
||||
*
|
||||
* Licensed under the terms of the GNU Lesser General Public License:
|
||||
* http://www.opensource.org/licenses/lgpl-license.php
|
||||
*
|
||||
* For further information visit:
|
||||
* http://www.fckeditor.net/
|
||||
*
|
||||
* File Name: fckconfigOpenCCM.js
|
||||
* Editor configuration settings for use in admin interface in APLAWS/OpenCCM.
|
||||
* This configuration is designed to match the following goals:
|
||||
* - Easy useage of the editor
|
||||
* - Clean HTML output, this means for example that no deprected elements are useable from the editor
|
||||
*
|
||||
* This file is organized in the same way as the page of the FCKEditor documentation showing all config options.
|
||||
* The page can be found here: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
|
||||
*
|
||||
* - Semantic HTML output. This means that elements like <em> are prefered against such as <b>
|
||||
* This config is loaded from the Javascript in the calling page using AFTER the
|
||||
* default fckconfig.js is loaded.
|
||||
*
|
||||
* File Authors:
|
||||
* Chris Burnett (orginale fckeditordefaultstyle.js for APLAWS)
|
||||
* Jens Pelzetter
|
||||
*/
|
||||
|
||||
/* **************************************************************************************************************** */
|
||||
|
||||
|
||||
/* Editor Behavior
|
||||
--------------- */
|
||||
|
||||
FCKConfig.AutoDetectPasteFromWord = true ; //Paste Word text directly to the editor (only IE)
|
||||
FCKConfig.CleanWordKeepsStructure = true ; //Prefer to keep HTML structure, not layout
|
||||
FCKConfig.DocType = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">' ;
|
||||
FCKConfig.ForcePasteAsPlainText = false ; //Text pasted in from another app will appear as plain text
|
||||
|
||||
|
||||
/* Styles
|
||||
------ */
|
||||
|
||||
FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'config/fckconfigSHP.xml' ; //Some styles
|
||||
|
||||
/* HTML Output
|
||||
----------- */
|
||||
|
||||
FCKConfig.FormatOutput = true ; //Format output code
|
||||
FCKConfig.FormatSource = true ;
|
||||
|
||||
/* User interface
|
||||
-------------- */
|
||||
|
||||
FCKConfig.AutoDetectLanguage = true ;
|
||||
FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','TableCell','Table','Form'] ;
|
||||
FCKConfig.ImageDlgHideLink = true ;
|
||||
FCKConfig.ImageDlgHideAdvanced = true ;
|
||||
FCKConfig.ShowDropDialog = true ;
|
||||
FCKConfig.ToolbarSets["AplawsBasic"] = [
|
||||
['Style','-','OrderedList','UnorderedList','Subscript', 'Superscript', '-','SpellCheck','Link','Unlink','RemoveFormat','-','AdvToolbar', 'About']
|
||||
] ;
|
||||
|
||||
FCKConfig.ToolbarSets["AplawsAdvanced"] = [
|
||||
['Style','-','OrderedList','UnorderedList','Subscript', 'Superscript'],
|
||||
['Cut','Copy','Paste','PasteText','PasteWord','Undo','Redo','RemoveFormat'],
|
||||
['Find','Replace','SelectAll', '-','SpellCheck'],
|
||||
'/',
|
||||
['Link','Unlink','Anchor','Image','-','Table', '-', 'Source'],
|
||||
['SimpleToolbar']
|
||||
] ;
|
||||
|
||||
|
||||
// Replace the Advanced toolbar with AplawsAdvanced & setup the Basic toolbar to use the AplawsBasic toolbar
|
||||
// The two toolbars are used to support the dynamic toolbar switching plugin.
|
||||
// Set the Default to be the Basic version so that the editor loads the basic toolbar on startup.
|
||||
|
||||
FCKConfig.ToolbarSets["Advanced"] = FCKConfig.ToolbarSets["AplawsAdvanced"] ;
|
||||
FCKConfig.ToolbarSets["Basic"] = FCKConfig.ToolbarSets["AplawsBasic"] ;
|
||||
FCKConfig.ToolbarSets["Default"] = FCKConfig.ToolbarSets["Basic"] ;
|
||||
|
||||
/* Advanced
|
||||
-------- */
|
||||
FCKConfig.FirefoxSpellChecker = true ;
|
||||
FCKConfig.SpellChecker = 'ieSpell' ; // 'ieSpell' | 'SpellerPages'
|
||||
FCKConfig.IeSpellDownloadUrl = 'http://www.iespell.com/rel/ieSpellSetup211325.exe' ;
|
||||
|
||||
/* File Browser and Updoader
|
||||
------------------------- */
|
||||
|
||||
FCKConfig.LinkBrowser = true ;
|
||||
FCKConfig.LinkBrowserURL = "/ccm/content/admin/search.jsp?useURL=true&widget=getElementById('txtUrl')" ;
|
||||
FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70%
|
||||
FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70%
|
||||
|
||||
|
||||
/*
|
||||
FCKConfig.ToolbarSets["AplawsBasic"] = [
|
||||
['Style','-','Bold','OrderedList','UnorderedList','-','SpellCheck','Link','Unlink','RemoveFormat','-','AdvToolbar']
|
||||
] ;
|
||||
|
||||
FCKConfig.ToolbarSets["AplawsAdvanced"] = [
|
||||
['Style','-','Bold','OrderedList','UnorderedList'],
|
||||
['Cut','Copy','Paste','PasteText','PasteWord','Undo','Redo','RemoveFormat'],
|
||||
['Find','Replace','SelectAll', '-','SpellCheck'],
|
||||
'/',
|
||||
['UniversalKey'],
|
||||
['Link','Unlink','Anchor','Image','-','Source'],
|
||||
['SimpleToolbar']
|
||||
] ;
|
||||
|
||||
|
||||
// Replace the Advanced toolbar with AplawsAdvanced & setup the Basic toolbar to use the AplawsBasic toolbar
|
||||
// The two toolbars are used to support the dynamic toolbar switching plugin.
|
||||
// Set the Default to be the Basic version so that the editor loads the basic toolbar on startup.
|
||||
|
||||
FCKConfig.ToolbarSets["Advanced"] = FCKConfig.ToolbarSets["AplawsAdvanced"] ;
|
||||
FCKConfig.ToolbarSets["Basic"] = FCKConfig.ToolbarSets["AplawsBasic"] ;
|
||||
FCKConfig.ToolbarSets["Default"] = FCKConfig.ToolbarSets["Basic"] ;
|
||||
|
||||
|
||||
FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'config/fckconfigstyledefault.xml' ;
|
||||
FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','TableCell','Table','Form'] ;
|
||||
|
||||
FCKConfig.SpellChecker = 'ieSpell' ; // 'ieSpell' | 'SpellerPages'
|
||||
FCKConfig.IeSpellDownloadUrl = 'http://www.iespell.com/rel/ieSpellSetup211325.exe' ;
|
||||
|
||||
FCKConfig.ImageDlgHideLink = true ;
|
||||
FCKConfig.ImageDlgHideAdvanced = true ;
|
||||
|
||||
FCKConfig.FlashDlgHideAdvanced = true ;
|
||||
|
||||
FCKConfig.LinkBrowser = true ;
|
||||
FCKConfig.LinkBrowserURL = "/ccm/content/admin/search.jsp?useURL=true&widget=getElementById('txtUrl')" ;
|
||||
FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70%
|
||||
FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70%
|
||||
*/
|
||||
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
|
||||
<Styles>
|
||||
<Style name="Heading 3" element="h3" />
|
||||
<Style name="Heading 4" element="h4" />
|
||||
<Style name="Heading 5" element="h5" />
|
||||
<Style name="Heading 6" element="h6" />
|
||||
<Style name="Emphasized" element="em" />
|
||||
<Style name="Strong emphasized" element="strong" />
|
||||
<Style name="Body Text" element="p" />
|
||||
</Styles>
|
||||
Loading…
Reference in New Issue