- Timestamp:
- 2008-06-23 00:00:48 (7 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/FCKeditor.java
r1682 r2101 30 30 31 31 /** 32 * FCKeditor control class.<br> 33 * 32 * FCKeditor class.<br /> 34 33 * It creates the html code for the FCKeditor based on the following things: 35 34 * <ul> 36 * <li>browser 'scapabilities</li>35 * <li>browser capabilities</li> 37 36 * <li>different properties settings managed by the {@link PropertiesLoader}</li> 38 * <li>settings from the 'caller', eg. jsp-pages</li>37 * <li>settings from the FCKeditor tag, template engines and other systems</li> 39 38 * </ul> 40 39 * … … 57 56 /** 58 57 * Main constructor.<br> 59 * All important settings are done here and will be preset by the re defaults taken from60 * {@link PropertiesLoader}.58 * All important settings are done here and will be preset by the defaults 59 * taken from {@link PropertiesLoader}. 61 60 * 62 61 * @param request … … 116 115 117 116 /** 118 * Set the initial value to be edited.<br> 119 * In HTML code 117 * Set the initial value to be edited as HTML markup. 120 118 * 121 119 * @param value … … 127 125 128 126 /** 129 * Set the dir where the FCKeditor files reside on the server.<br> 130 * <b>Remarks</b>:<br> 131 * Avoid using relative paths. It is preferable to set the base path starting from the root (/).<br> 132 * Always finish the path with a slash (/). 127 * Sets the directory where the FCKeditor resides on the server.<br /> 128 * <strong>Remarks</strong>: Avoid using relative paths. Use an absolute 129 * path from the context (e.g. /fckeditor). 133 130 * 134 131 * @param value … … 170 167 171 168 /** 172 * Get the advanced configuation set.<br >173 * Adding element to this collection you can override the settings specified in the config.js174 * file.169 * Get the advanced configuation set.<br /> 170 * By adding elements to this collection you can override the settings 171 * specified in the config.js file. 175 172 * 176 173 * @return configuration collection … … 190 187 } 191 188 189 /** 190 * Escape base XML entities as specified <a 191 * href="http://en.wikipedia.org/wiki/Xml#Entity_references">here</a> 192 * 193 * @param txt 194 * Text to escape. 195 * @return Escaped text. 196 */ 192 197 private String escapeXml(String txt) { 193 198 if (Utils.isEmpty(txt)) 194 199 return txt; 200 // TODO Strings are inefficent, use StringBuffer instead 195 201 txt = txt.replaceAll("&", "&"); 196 202 txt = txt.replaceAll("<", "<"); … … 201 207 } 202 208 203 /** 204 * Minimum implementation, see ticket #27 for detailed information. 209 /* 210 * (non-Javadoc) 211 * @see #createHtml() 205 212 */ 206 213 public String create() { 207 214 return createHtml(); 208 215 } 209 216 217 /* 218 * (non-Javadoc) 219 * @see #createHtml() 220 */ 210 221 @Override 211 222 public String toString() { … … 214 225 215 226 /** 216 * Generate the HTML Code for the editor. <br> 217 * Evalute the browser capabilities and generate the editor if compatible, or a simple textarea 218 * otherwise. 219 * 220 * @return html code 227 * Minimum implementation, see ticket #27 for detailed information. Generate 228 * the HTML Code for the editor.<br /> 229 * Evaluate the browser capabilities and generate the editor if compatible, 230 * or a simple textarea otherwise. 231 * 232 * @return FCKeditor html code 221 233 */ 222 234 public String createHtml() {