Tag:ckeditor editor
<%@ page language= "java" import= "java.util.*" pageencoding= "UTF-8"%><%string path = Request.getcontextpath () ; String basepath = request.getscheme () + "://" +request.getservername () + ":" +request.getserverport () +path+ "/";%> <! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >Ckeditor.editorconfig = function (config) {//Remove the body and pconfig.removeplugins = ' elementspath ' that appear in the lower left corner,/*//below is the full feature configuration item, You can have your own actual need for functional options to configure Config.toolbar = ' full '; config.toolbar_full =[[' Source ', '-', ' Save ', ' NewPage ', ' Preview ', '-', ' Templates '], [' Cut ', ' Copy ', ' Paste ', ' pastetext ', ' Pastefromword ', '-', ' Print ', ' spellchecker ', ' Scayt '], [' Undo ', ' Redo ', '-', ' Find ', ' Replace ', '-', ' selectall ', ' Removeformat '], [' Form ', ' Checkbox ', ' Radio ', ' TextField ', ' Textarea ', ' Select ', ' Button ', ' ImageButton ', ' HiddenField '], '/', [' Bold ', ' Italic ', ' underline ', ' Strike ', '-', ' subscript ', ' Super Script '], [' numberedlist ', ' BulletedList ', '-', ' outdent ', ' Indent ', ' Blockquote '], [' Justifyleft ', ' justifycenter ', ' Justifyright ', ' Justifyblock '], [' Link ', ' Unlink ', ' Anchor '], [' Image ', ' Flash ', ' Table ', ' horizontalrule ', ' Smiley ', ' Specialchar ', ' pagebreak '], '/', [' Styles ', ' Format ', ' Font ', ' FontSize '], [' TextColor ', ' BGColor '], [' Maximize ', ' Showblocks ', '-', ' about ']];*//****************************The following are the configuration items that can be modified **************************************************//*//config.language = ' ZH-CN '; Interface language, the default is ' en '//Set the width high//config.width = 400; Config.height = 400;//Config.uicolor = ' #AADC6E '; Skin background Color Set//config.skin= "Kama";//skin comes with three kinds of kama (default) v2 and office2003 (to choose) black (from the network) a total of four//config.toolbar = ' Basic '; corresponding emoticon Image plugins/smiley/plugin.jsconfig.smiley_images = [' regular_smile.gif ', ' sad_smile.gif ', ' wink_smile.gif ', ' Teeth_smile.gif ', ' confused_smile.gif ', ' tounge_smile.gif ', ' embaressed_smile.gif ', ' omg_smile.gif ', ' Whatchutalkingabout_smile.gif ', ' angry_smile.gif ', ' angel_smile.gif ', ' shades_smile.gif ', ' devil_smile.gif ', ' Cry_ Smile.gif ', ' lightbulb.gif ', ' thumbs_down.gif ', ' thumbs_up.gif ', ' heart.gif ', ' broken_heart.gif ', ' kiss.gif ', ' Envelope.gif ']; Resets the alternate font. Config.font_names = ' song body; italic _gb2312; new song body; bold; official script; Young circle; Microsoft Jas Black; Arial; Comic Sans MS; Courier New; Tahoma; Times New Roman; Verdana; ';//toolbar can be shrunk (i.e. whether the toolbar can be hidden) Config.toolbarcancollapse = true; The position of the toolbar config.toolbarlocation = ' top ';//optional: Bottom Top (default)//toolbar is expanded by default config.toolbarstartupexpanded = true; Cancel "Drag to change size" function plugins/resize/plugin.js config.resize_enabled = false; Change the maximum height of the size config.resize_maxheight = 3000; Change the maximum width of the size config.resize_maxwidth = 3000; Change the minimum height of the size config.resize_minheight = 250; Change the minimum width of the size config.resize_minwidth = 750; Whether to automatically update the data within the element Config.autoupdateelement =true when submitting a form that contains this editor; Set whether to use absolute or relative directory, empty for relative directory config.basehref = "//editor Z-index value Config.basefloatzindex = 10000; Set Shortcut key Config.keystrokes = [[CKEditor. ALT + 121, ' toolbarfocus '],//Get Focus F10 [CKEditor. ALT + 122, ' elementspathfocus '],//Element focus F11 [CKEditor. SHIFT + 121, ' contextMenu '],//Text menu F10 [CKEditor. CTRL + +, ' undo '],//Undo Z [CKEditor. CTRL + A, ' redo ',//Redo Y [CKEditor. CTRL + CKEditor. SHIFT + +, ' redo '],//z [CKEditor. CTRL + +, ' link ',//link L [CKEditor. CTRL + 66 , ' bold '],//bold B [CKEditor. CTRL + A, ' italic '],//Italic I [CKEditor. CTRL +, ' underline ',//Underline u [CKEditor. ALT + 109, ' toolbarcollapse ']//-]//Set shortcut keys may conflict with browser shortcuts plugins/keystrokes/plugin.js. Config.blockedkeystrokes = [CKEditor. CTRL +//b, CKEditor. CTRL +//i, CKEditor. CTRL +//u]//sets the value plugins/colorbutton/plugin.js of the background color of the element in the edit. Config.colorbutton_backstyle = {element: ' span ', styles: {' background-color ': ' # (color) '}}//Set foreground color The value of plugins/colorbutton/plugin.js config.colorbutton_colors = ' 000,800000,8b4513,2f4f4f,008080,000080,4b0082, 696969,B22222,A52A2A,DAA520,006400,40E0D0,0000CD,800080,808080,F00,FF8C00,FFD700,008000,0FF,00F,EE82EE, A9A9A9, Ffa07a,ffa500,ffff00,00ff00,afeeee,add8e6,dda0dd,d3d3d3,fff0f5,faebd7,ffffe0,f0fff0,f0ffff,f0f8ff,e6e6fa,fff '; Whether to display the other colors option when selecting a color plugins/colorbutton/plugin.js config.colorbutton_enablemore =false//block foreground color default setting plugins/ Colorbutton/plugin.js Config.colorbutton_forestyle = {element: ' span ', styles: {' color ': ' # (color) '}}; The CSS file that you need to add here adds the absolute path to use relative paths and sites config.contentscss = './contents.css '; Text Direction config.contentslangdirection = ' RTL '; Left-to-right//ckeditor configuration file Ckeditor.replace (' myfiled ', {customconfig: './config.js '}) if you do not want to leave the configuration blank; The background color of the interface edit box plugins/dialog/plugin.js config.dialog_backgroundcovercolor = ' #fffefd '; Can be set reference Config.dialog_backgroundcovercolor = ' white '//default//Background opacity value should be in: 0.0~1.0 between Plugins/dialog/plugin.js conf Ig.dialog_backgroundcoveropacity = 0.5//move or change element when the frame's adsorption distance unit: Pixel plugins/dialog/plugin.js Config.dialog_magnetdistanc e = 20; Whether to deny local spelling check and prompt default for deny currently only Firefox and Safari support Plugins/wysiwygarea/plugin.js. Config.disablenativespellchecker =true//For table editing functions such as: Add Rows or columns currently Firefox only supports Plugins/wysiwygarea/plugin.js Config.disablen Ativetablehandles =true; The default is not to turn on//whether to turn on the image and the size of the table change function config.disableobjectresizing = true; Config.disableobjectresizing= false//default to open//Set HTML document Type Config.doctype = ' <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd %22 '; Whether to render the editing area plugins/editingblock/plugin.js Config.editingblock = true; In the editor, enter the resulting label Config.entermode =ckeditor. enter_p; Optional: CKEDITOR.ENTER_BR or Ckeditor.enter_div//whether to use HTML entities for output plugins/entities/plugin.js config.entities = true; Define more entities plugins/entities/plugin.js config.entities_additional = ' #39 '; where # instead of &//whether to convert some difficult to display characters for the corresponding HTML characters plugins/entities/plugin.js Config.entities_greek = true; Whether to convert some Latin characters to htmlplugins/entities/plugin.js config.entities_latin = true; Whether to convert some special characters to ASCII word such as "This is Chinese: Chinese." Convert to "This is Chinese: Chinese." Plugins/entities/plugin.js config.entities_processnumerical =false; Add New Component Config.extraplugins = ' Myplugin '; Non-default only example//use high-bright color when searching plugins/find/plugin.js Config.find_highlight = {element: ' span ', Styles: {' background-color ': ' #ff0 ', ' Color ': ' #00f '}}; The default font name plugins/font/plugin.js Config.font_defaultlabel = ' Arial '; Font editing when the character set can add commonly used Chinese characters: song body, italics, blackbody, such as plugins/font/plugin.js config.font_names = ' Arial; Times Newroman; Verdana '; Default style of text plugins/font/plugin.js Config.font_style = {element: ' span ', styles: {' font-family ': ' # (family) '}, overrides: [{element: ' font ', attributes: {' face ': null}}}; Font default size Plugins/font/plugin.js Config.fontsize_defaultlabel = ' 12px '; Font editing optional font size plugins/font/plugin.js config.fontsize_sizes= ' 8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px ; 18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px '//style used when setting font size Plugins/font/plugin.js Config.fontsize_style = {element: ' span ', styles: {' font-size ': ' # (Size) '}, overrides: [{E Lement: ' Font ', attributes: {' size ': null}}]}; Whether to force copy of the content to remove the format Plugins/pasTetext/plugin.js config.forcepasteasplaintext =false//do not remove//whether to force "&" instead of "&" plugins/htmldataprocessor/ Plugin.js Config.forcesimpleampersand = false; A semicolon-delimited label name appears on the toolbar plugins/format/plugin.js config.format_tags = ' p;h1;h2;h3;h4;h5;h6;pre;address;div '; Whether to use the full HTML editing mode as used, its source code will contain:
The configuration of the CKEditor editor uses