/* * FCKeditor - The text editor for internet * Copyright (C) 2003-2006 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/ * * "Support Open Source software. What about a donation today?" * * File Name: fck_editorarea.css * This is the default CSS file used by the editor area. It defines the * initial font of the editor and background color. * * A user can configure the editor to use another CSS file. Just change * the value of the FCKConfig.EditorAreaCSS key in the configuration * file. * * File Authors: * Frederico Caldeira Knabben (fredck@fckeditor.net) */ /* The "body" styles should match your editor web site, mainly regarding background color and font family and size. */ <% //Variable Declaration String strFontColor = request.getParameter("fontcolor"); //Colors are coming from the stylesheets included for the texts //font family and font sizes are there in the style tag for texts in the template //Get the default font family and size for the text String strFontFamily = request.getParameter("fontfamily"); String strFontSize = request.getParameter("fontsize"); /* System.out.println("fontcolor in css::"+strFontColor); System.out.println("in fck_editorarea.jsp ***** Name *****:"+strFontFamily); System.out.println("in fck_editorarea.jsp **** Size *****:"+strFontSize); */ //here to resolve the bug : RTE's bg color is coming with template's body bg color //instead of "" string bgcolor is set to #FFFFFF String strBackgroundColor = (strFontColor.equals("#FFFFFF")) ? "#CCCCCC" : "#FFFFFF"; //String strBackgroundColor = "#000000" ; %> body { background-color: <%=strBackgroundColor%>; padding: 5px 5px 5px 5px; margin: 5px; } body, td { font-family: <%=strFontFamily%>; font-size: <%=strFontSize%>; } /* P, UL, LI { margin-top: 0px; margin-bottom: 0px; } */ /* The following are some sample styles used in the "Styles" toolbar command. You should instead remove them, and include the styles used by the site you are using the editor in. */ .Bold { font-weight: bold; } .Title { font-weight: bold; font-size: 18px; color: #cc3300; } .Code { border: #8b4513 1px solid; padding-right: 5px; padding-left: 5px; color: #000066; font-family: 'Courier New' , Monospace; background-color: #ff9933; }