/*
* 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: FCKeditorTag.java
* FCKeditor tag library.
*
* Version: 2.3
* Modified: 2005-08-11 16:29:00
*
* File Authors:
* Simone Chiaretta (simo@users.sourceforge.net)
*/
package com.fredck.FCKeditor.tags;
import com.fredck.FCKeditor.FCKeditor;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.tagext.BodyContent;
import javax.servlet.jsp.tagext.BodyTagSupport;
/**
* Custom Tag class to access the {@linkplain com.fredck.FCKeditor.FCKeditor container}.<br>
*<p>
* <b>Simple usage</b>:
* <pre>
* <FCK:editor
* id="EditorAccessibility"
* width="80%"
* height="120"
* toolbarSet="Accessibility"
* ">This is another test. <BR><BR>The "Second" row.</BR></FCK:editor">
* </pre>
*
*<p>In this example we set all the attribute for the fckedit tag.
*
*<p>
* <b>Advanced usage of the tag</b>:
* <pre>
* <FCK:editor id="EditorDefault" basePath="/FCKeditor/"
* styleNames=";Style 1;Style 2; Style 3"
* fontNames=";Arial;Courier New;Times New Roman;Verdana" >
* This is some <B>sample text</B>.
* </FCK:editor>
* </pre>
*<p>In this example we set the id and the basePath of the editor (since it is /FCKeditor/
* we could have omitted it because it's already the default value).<br>
* Then we used the the optional attributes to set some advanced configuration settings.
*
* @author Simone Chiaretta (simo@users.sourceforge.net)
*/
public class FCKeditorTag extends BodyTagSupport {
private String id;
private String value = "";
private String basePath = null;
private String toolbarSet = null;
private String width = null;
private String height = null;
private String customConfigurationsPath = null;
private String editorAreaCSS = null;
private String baseHref = null;
private String skinPath = null;
private String pluginsPath = null;
private String fullPage = null;
private String debug = null;
private String autoDetectLanguage = null;
private String defaultLanguage = null;
private String contentLangDirection = null;
private String enableXHTML = null;
private String enableSourceXHTML = null;
private String fillEmptyBlocks = null;
private String formatSource = null;
private String formatOutput = null;
private String formatIndentator = null;
private String geckoUseSPAN = null;
private String startupFocus = null;
private String forcePasteAsPlainText = null;
private String forceSimpleAmpersand = null;
private String tabSpaces = null;
private String useBROnCarriageReturn = null;
private String toolbarStartExpanded = null;
private String toolbarCanCollapse = null;
private String fontColors = null;
private String fontNames = null;
private String fontSizes = null;
private String fontFormats = null;
private String stylesXmlPath = null;
private String linkBrowserURL = null;
private String imageBrowserURL = null;
private String flashBrowserURL = null;
private String linkUploadURL = null;
private String imageUploadURL = null;
private String flashUploadURL = null;
/**
* The underlying FCKeditor object
*
*/
protected FCKeditor fcked = null;
/**
* Set the unique id of the editor
*
* @param value name
*/
public void setId(String value) {
id=value;
}
/**
* Set the dir where the FCKeditor files reside on the server
*
* @param value path
*/
public void setBasePath(String value) {
basePath=value;
}
/**
* Set the name of the toolbar to display
*
* @param value toolbar name
*/
public void setToolbarSet(String value) {
toolbarSet=value;
}
/**
* Set the width of the textarea
*
* @param value width
*/
public void setWidth(String value) {
width=value;
}
/**
* Set the height of the textarea
*
* @param value height
*/
public void setHeight(String value) {
height=value;
}
/**
* Set the path of a custom file that can override some configurations.<br>
* It is recommended to use absolute paths (starting with /), like "/myfckconfig.js".
*
* @param value path
*/
public void setCustomConfigurationsPath(String value) {
customConfigurationsPath=value;
}
/**
* Set the CSS styles file to be used in the editing area.<br>
* In this way you can point to a file that reflects your web site styles.
*
* @param value path
*/
public void setEditorAreaCSS(String value) {
editorAreaCSS=value;
}
/**
* Base URL used to resolve links (on images, links, styles, etc.).<br>
* For example, if BaseHref is set to 'http://www.fredck.com', an image that points to "/images/Logo.gif" will be interpreted by the editor as "http://www.fredck.com/images/Logo.gif", without touching the "src" attribute of the image.
*
* @param value URL
*/
public void setBaseHref(String value) {
baseHref=value;
}
/**
* Sets the path to the skin (graphical interface settings) to be used by the editor.
*
* @param value path
*/
public void setSkinPath(String value) {
skinPath=value;
}
/**
* Sets the base path used when looking for registered plugins.
*
* @param value path
*/
public void setPluginsPath(String value) {
pluginsPath=value;
}
/**
* Enables full page editing (from <HTML> to </HTML>).<br>
* It also enables the "Page Properties" toolbar button.
*
* @param value true/false
* @throws JspException if value is not true or false
*/
public void setFullPage(String value) throws JspException {
if(! value.equals("true") && ! value.equals("false"))
throw new JspException("fullPage attribute can only be true or false");
fullPage=value;
}
/**
* Enables the debug window to be shown when calling the FCKDebug.Output() function.
*
* @param value true/false
* @throws JspException if value is not true or false
*/
public void setDebug(String value) throws JspException {
if(! value.equals("true") && ! value.equals("false"))
throw new JspException("debug attribute can only be true or false");
debug=value;
}
/**
* Tells the editor to automatically detect the user language preferences to adapt its interface language.<br>
* With Internet Explorer, the language configured in the Windows Control Panel is used.<br>
* With Firefox, the browser language is used.
*
* @param value true/false
* @throws JspException if value is not true or false
*/
public void setAutoDetectLanguage(String value) throws JspException {
if(! value.equals("true") && ! value.equals("false"))
throw new JspException("autoDetectLanguage attribute can only be true or false: here was " + value);
autoDetectLanguage=value;
}
/**
* Sets the default language used for the editor's interface localization.<br>
* The default language is used when the AutoDetectLanguage options is disabled or when the user language is not available.
*
* @param value language code
*/
public void setDefaultLanguage(String value) {
defaultLanguage=value;
}
/**
* Sets the direction of the editor area contents.<br>
* The possible values are:
* <ul>
* <li>ltr - Left to Right
* <li>rtl - Right to Left
* </ul>
*
* @param v
没有合适的资源?快使用搜索试试~ 我知道了~
FCKeditor用于各种web技术开发
共401个文件
gif:126个
js:116个
html:51个
需积分: 3 3 下载量 24 浏览量
2011-07-25
10:38:50
上传
评论
收藏 1.05MB RAR 举报
温馨提示
1、多种浏览器兼容、生成XHTML 1.0 2、CSS支持,更好地结合你的网站风格 。字体格式,包括:类型,大小,颜色,风格,粗体,斜体等 3、文本格式,包括:对齐,缩进,子弹名单等 、减少,粘贴和粘贴为纯文本,撤消和重做 、粘贴文本,从清理与自动检测 4、可整合使用到ASP, ASP.NET, Java, ColdFusion, Perl, PHP, javascript等等脚本语言中。 5、多国语言支持,自动用户语言检测。包括右至左的脚本。 图象和文件的链接上传和服务器存放的浏览器。
资源推荐
资源详情
资源评论
收起资源包目录
FCKeditor用于各种web技术开发 (401个子文件)
class_upload.asp 6KB
class_upload.asp 6KB
commands.asp 5KB
upload.asp 3KB
connector.asp 3KB
io.asp 2KB
basexml.asp 2KB
config.asp 2KB
config.asp 2KB
util.asp 1KB
io.asp 836B
connector.aspx 1KB
upload.aspx 1KB
connector.cfm 11KB
spellchecker.cfm 6KB
upload.cfm 6KB
config.cfm 3KB
config.cfm 3KB
connector.cgi 4KB
FCKeditorTag.class 11KB
ConnectorServlet.class 10KB
SimpleUploaderServlet.class 7KB
FCKeditor.class 6KB
Dbconn.class 3KB
EmailService.class 2KB
Variable.class 2KB
FCKeditorConfigurations.class 2KB
Content.class 1KB
FckService.class 1KB
User.class 1002B
Fck.class 752B
fck_editor.css 8KB
fck_editor.css 8KB
fck_editor.css 8KB
fck_internal.css 2KB
fck_dialog.css 2KB
fck_dialog.css 2KB
fck_dialog.css 2KB
fck_editorarea.css 2KB
browser.css 2KB
fck_dialog_common.css 2KB
fck_showtableborders_gecko.css 1KB
spellerStyle.css 888B
sample.css 424B
Thumbs.db 9KB
fck_strip.gif 9KB
fck_strip.gif 9KB
fck_strip.gif 4KB
logo_fckeditor.gif 2KB
html.gif 1KB
htm.gif 1KB
rdp.gif 1KB
ai.gif 1KB
embaressed_smile.gif 1KB
teeth_smile.gif 1KB
shades_smile.gif 1KB
tounge_smile.gif 1KB
wink_smile.gif 1KB
sad_smile.gif 1KB
regular_smile.gif 1KB
whatchutalkingabout_smile.gif 1KB
envelope.gif 1KB
heart.gif 1012B
thumbs_down.gif 992B
thumbs_up.gif 989B
kiss.gif 978B
fla.gif 946B
logo_fredck.gif 920B
toolbar.buttonbg.gif 829B
swf.gif 725B
swt.gif 724B
bmp.gif 709B
gif.gif 704B
html.gif 621B
htm.gif 621B
rdp.gif 606B
fck_flashlogo.gif 599B
pdf.gif 567B
cry_smile.gif 473B
png.gif 464B
jpg.gif 463B
mp3.gif 454B
avi.gif 454B
angry_smile.gif 453B
cake.gif 453B
angel_smile.gif 445B
devil_smile.gif 444B
broken_heart.gif 423B
template3.gif 422B
xml.gif 408B
ai.gif 403B
swf.gif 388B
swt.gif 388B
fla.gif 382B
template1.gif 375B
zip.gif 368B
omg_smile.gif 342B
template2.gif 333B
confused_smile.gif 322B
lightbulb.gif 303B
共 401 条
- 1
- 2
- 3
- 4
- 5
资源评论
yan39725920
- 粉丝: 1
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功