// this file stores the default settings for RichTextEditor // some settings are overrided by server settings window.RTE_Configuration = { version : "2013061202", skin : "office2007blue", //sets the skin for how the toolbar is draw toolbar : "full",//auto configures the toolbar with a set of buttons autofocus : false,//specifies whether the editor grabs focus when the page loads readonly : false,//specifies whether editor is read-only showrulers : false,//specifies whether to display horizontal and/or vertical rulers showlinkbar : true,//specifies whether to display the link editing box showtoolbar : true,//specifies whether to display the editor toolbar showtoolbar_code: true,//specifies whether to display the code mode toolbar showtoolbar_view: true,//specifies whether to display the preview toolbar showbottombar : true,//specifies whether to display the editor bottom bar showeditmode : true,//specifies whether to display the edit mode button in the bottom bar showcodemode : true,//specifies whether to display the code mode button in the bottom bar showpreviewmode : true,//specifies whether to display the preview mode button in the bottom bar showtaglist : true,//specifies whether to display the tag selector in the bottom bar showzoomview : true,//specifies whether to display a zoom factor drop down in the bottom bar showstatistics : true,//specifies whether to display the content statistics in the bottom bar showresizecorner: true,//specifies whether to display the resize handle at the corner of the editor resize_mode : "resizeboth", //"disabled","autoadjustheight","resizeheight","resizewidth","resizeboth" gets or sets the resize mode enabledragdrop : true,//specifies whether to enable drag-and-drop support for the editor enablecontextmenu: true,//specifies whether to display the context menu enableobjectresizing:true,//specifies whether to enable the object resizing autoparseclasses: true,//specifies whether or not the Editor should automatically parse the CSS classes from ContentCss savebuttonmode : "submit", //specifies the default behavior for save button initialtabmode : "edit", //"edit","code","view" initialfullscreen : false,//specifies whether the Editor is used in a full-screen mode initialtoggleborder : true,//specifies the ToggleBorder state maxhtmllength : 0,//specifies the maximum number of characters including the HTML tags allowed. Default is 0, indicating no maximum maxtextlength : 0,//specifies the maximum number of characters excluding the HTML tags allowed. Default is 0, indicating no maximum editorbodyclass : "",//specifies the class name that will be added to the body of the editor document editorbodystyle : "",//specifies the css style that will be applied to the body of the editor document insertparagraph : 'p',//default tag for insertparagraph unlistparagraph : 'p',//default tag for unlistparagraph justifyparagraph: 'p',//default tag for justifyparagraph enterkeytag : 'p',//default tag for enterkeytag shiftenterkeytag: 'br',//default tag for shiftenterkeytag insertbodyline : '
',//default code for inserttopline indentoutdentsize: 40,//by default, editor would use "margin-left:40px" for indentation, increasing its value by 40px for each new indentation. tabkeyhtml : ' ', // ' ', specifies the number of spaces to be inserted when the user hits the "tab" key. codetabindent : ' ',//default 4 spaces for code indentation tabtonextcell : true,// when pressing the tab key the cursor jumps to the next cell. set to 'select' for selecting content of the next td. paste_default_command : "confirmword", // "disabled","paste","pasteword","confirmword","pastetext","pastepuretext" pastetext_whitespace : 'auto', // 'auto',true,false pastetext_tabspaces : ' ', // for past from word , the list item paste_replacelist : {"·":"="}, paste_removestylelist: "font-family,line-height,text-decoration,text-align,text-underline,letter-spacing,line-height,padding,border,margin", inserttemplate_removestylelist: "font-family,line-height,text-decoration,text-align,text-underline,letter-spacing,line-height,padding,border,margin", format_painter_list : "subscript,superscript,bold,italic,underline,linethrough,overline,forecolor,backcolor,fontsize,fontname,mark", //which format the painter shall collect from document format_painter_preclear : true, //remove format before apply the new style format_subscript : "", //or "", //default tag for subscript format_superscript : "", //or "", //default tag for superscript format_bold : "", //or "" or "", //default behavior for bold format_italic : "", //or "" or "", //default behavior for italic format_underline : "", //or "", //default behavior for underline format_linethrough : "",//or "
Content...
", // class='myblockquote' default_code_printbreak : '', command_insertdatetime : function() { var date=new Date(); var dval=date.getFullYear()*10000+(date.getMonth()+1)*100+date.getDate(); dval=dval*1000000+date.getHours()*10000+date.getMinutes()*100+date.getSeconds(); return String(dval).replace(/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/,"$1-$2-$3 $4:$5:$6"); }, //full page edit mode key , F12=123 , -1 means disable hot key for fullscreen event_fullscreenkeycode : 123, //set to 5000 to test the loading gif loader_loadcodedelay : 0, //means richtexteditor/images/loading5.gif loader_loadingimage : 'loading5.gif', //auto format the source code when switch to source code view ? codeview_autoformat : true,//"oneline", preview_disabletooltip : false, preview_disablefontname : false, preview_disablefontsize : false, preview_disableforecolor : true, preview_disablebackcolor : true, fontnamelist : 'Arial,Verdana,Tahoma,Segoe UI,Sans-Serif,Comic Sans MS,Courier New,Georgia,Impact,Lucida Console,Times New Roman,Trebuchet MS,Monospace', fontsizelist : '8px,9px,10px,11px,12px,13px,14px,16px,18px,20px,24px,36px', colorpicker_forecolor : ["#000000","#993300","#333300","#003300","#003366","#000080","#333399","#333333", "#800000","#ff6600","#808000","#008000","#008080","#0000ff","#666699","#808080", "#ff0000","#ff9900","#99cc00","#339966","#33cccc","#3366ff","#800080","#999999", "#ff00ff","#ffcc00","#ffff00","#00ff00","#00ffff","#00ccff","#993366","#c0c0c0", "#ff99cc","#ffcc99","#ffff99","#ccffcc","#ccffff","#99ccff","#cc99ff","#ffffff"], colorpicker_backcolor : ["#000000","#993300","#333300","#003300","#003366","#000080","#333399","#333333", "#800000","#ff6600","#808000","#008000","#008080","#0000ff","#666699","#808080", "#ff0000","#ff9900","#99cc00","#339966","#33cccc","#3366ff","#800080","#999999", "#ff00ff","#ffcc00","#ffff00","#00ff00","#00ffff","#00ccff","#993366","#c0c0c0", "#ff99cc","#ffcc99","#ffff99","#ccffcc","#ccffff","#99ccff","#cc99ff","#ffffff"], colorpicker_othercolor : ["#000000","#993300","#333300","#003300","#003366","#000080","#333399","#333333", "#800000","#ff6600","#808000","#008000","#008080","#0000ff","#666699","#808080", "#ff0000","#ff9900","#99cc00","#339966","#33cccc","#3366ff","#800080","#999999", "#ff00ff","#ffcc00","#ffff00","#00ff00","#00ffff","#00ccff","#993366","#c0c0c0", "#ff99cc","#ffcc99","#ffff99","#ccffcc","#ccffff","#99ccff","#cc99ff","#ffffff"], htmlcode_forcehexformat : true, codeview_autoadjustmode : "normalize,indent", //this indexes matchs the images/all.png //comment it , or set to null/empty to disable the all.png solution //if you want to modify the context manually, please search our blog about 'allimageindexdata' and 'joinallimages' allimageindexdata : 'save,newdoc,print,find,fit,cleanup,unformat,spell,cut,copy,paste,pastetext,pasteword,delete,undo,redo,insertpagebreak,insertdate,timer,specialchar,keyboard,div,layer,groupbox,image,gallery,flash,media,document,template,youtube,insrow_t,insrow_b,delrow,inscol_l,inscol_r,delcol,inscell,delcell,row,cell,mrgcell,spltcell,break,paragraph,textarea,textbox,passwordfield,hiddenfield,listbox,dropdownbox,optionbutton,checkbox,imagebutton,submit,reset,pushbutton,page,bold,italic,under,left,center,right,justifyfull,justifynone,numlist,bullist,indent,outdent,superscript,subscript,strike,ucase,lcase,rule,link,unlink,anchor,imagemap,borders,selectall,selectnone,help,code,overline,forecolor,backcolor,inserttable,insertform,blockquote,formatpainter,lineheight,dir_ltr,dir_rtl,preview,design,htmlview,map,topline,bottomline,html5', //whether load the ihtml5.js for html5 browsers useimagedatacache : false, //for SiteRelative, forcerelative : true, syncloadtoolbar : false, floatbox_leaveclosetimer : 500, floatbox_showloaingimage : true, fullscreen_zindex : 100011, ctrltool_zindex : 100022, dialog_zindex : 110011, //don't greater then 123450 , otherwise uploader will not works //load the plugin into memory and activate its default function preloadplugins : "controldesigner,elementtoolbar,googlemap,insertyoutube,syntaxhighlighter", // htmlfilter_disabledlist : "", editor_player_url : null, editor_help_url : null, toolbars : { "ribbon":"<@COMMON,ribbonpaste,pastetext,pasteword,{save,new,print,spellcheck}{cut,copy,delete,find}{undo,redo|formatpainter}><@FORMAT,[fontname,fontsize]{bold,italic,underlinemenu|forecolor,backcolor}{superscript,subscript,changecase|removeformat,cleancode,selectall}><@PARAGRAPHS,[paragraphs,styles]{justifymenu,lineheight,ltr,rtl,insertlinemenu}{insertorderedlist,insertunorderedlist,outdent,indent,insertblockquote}><@INSERT,ribbontable,insertgallery,insertimage,{insertform,insertbox,insertlayer,insertfieldset,fullscreen,toggleborder,pageproperties,help}{insertlink,unlink,insertanchor,insertimagemap,insertdate,insertchars,virtualkeyboard}{inserttemplate,insertdocument,insertvideo,syntaxhighlighter,insertyoutube,html5,googlemap}>", "full":"{save,new,print,find,spellcheck}{cut,copy,paste,pastetext,pasteword,delete}{undo,redo}{formatpainter}{inserttable,insertbox,insertlayer,insertfieldset}{insertform}{insertchars,syntaxhighlighter,virtualkeyboard,insertdate}{pageproperties,help}/{bold,italic,underlinemenu,justifymenu,forecolor,backcolor}{lineheight,ltr,rtl}{insertlinemenu}{superscript,subscript,changecase}{insertorderedlist,insertunorderedlist,outdent,indent,insertblockquote}{removeformat,cleancode}{fullscreen,toggleborder,selectall}/[paragraphs,styles][fontname,fontsize]{insertlink,unlink,insertanchor,insertimagemap}{insertgallery,insertimage,insertvideo,inserttemplate,insertdocument,insertyoutube,html5,googlemap}", "light":"{cut,copy,paste,pastetext,pasteword,delete}{undo,redo}{spellcheck,find}{formatpainter}{insertlink,unlink}{insertlinemenu}{inserttable,insertbox}{insertgallery,insertimage,insertdocument,insertvideo,insertyoutube,inserttemplate}{removeformat,cleancode}{fullscreen,toggleborder,selectall}{help}/[paragraphs,styles][fontname,fontsize]{bold,italic,underlinemenu}{forecolor,backcolor}{superscript,subscript,changecase}{justifymenu,insertorderedlist,insertunorderedlist,outdent,indent,insertblockquote}", "forum": "{bold,italic,underline}{forecolor,backcolor,fontname,fontsize}{justifymenu}{insertorderedlist,insertunorderedlist,outdent,indent}{insertlink,insertgallery,insertimage,insertblockquote,syntaxhighlighter}{unlink,removeformat}", "email": "{bold,italic,underline,fontname,fontsize,forecolor,backcolor,insertlink,unlink,insertorderedlist,insertunorderedlist,outdent,indent,insertblockquote,justifyleft,justifycenter,justifyright,removeformat}", "minimal": "{bold,italic,underline,justifyleft,justifycenter,justifyright}", "none":"" }, toolbaritems : "", disableditems : "", googlemap_saveinsession : true, googlemap_initialplace : "USA", googlemap_initialzoom : 4, antispamemailencoder : true, enableieborderradius : true, //MISC UI BEHAVIOR: dialog_tag_a_disablesynclinktotext : false, plugin_taglist_hidepreviousitems : false, ////others //urltype : null, //"siterelative","absolute" //textdirection : null, //"ltr","rtl" '':'' } // The settings in this file will apply all instances of your editor objects. // When you upgrade your RTE with newer versions, this file may be overwritten. To avoid losting the changes, we suggest you use the following method overwrite the setting. // RTE_Configuration.enterkeytag="br"; // Just copy the code back to config.js after upgrading.