社区
Web 开发
帖子详情
论坛文字编辑区怎么做?
什么都搞点
2008-07-14 01:33:21
论坛上面有文字编辑区 ,可以改变你发表的内容的字体、颜色等等,
请问那是怎么做的啊?
...全文
125
7
打赏
收藏
论坛文字编辑区怎么做?
论坛上面有文字编辑区 ,可以改变你发表的内容的字体、颜色等等, 请问那是怎么做的啊?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
什么都搞点
2008-07-16
打赏
举报
回复
谁有FCKeditor.java 2.3 (FCKeditot for java)
发给我一个吧,谢谢啦!急啊!
什么都搞点
2008-07-16
打赏
举报
回复
http://www.fckeditor.net/download/这个网站上的
Click here to download the latest version
超链接不能用啊!!!
phon_oy
2008-07-15
打赏
举报
回复
使用代理啊
http://iproxy.org.ru/
什么都搞点
2008-07-14
打赏
举报
回复
FCKeditor.java 2.3 (FCKeditot for java)
这个哪里有下载啊?
什么都搞点
2008-07-14
打赏
举报
回复
http://sourceforge.net/project/downloading.php?group_id=75348&filename=FCKeditor_2.6.2.zip
这个网站进不了啊
phon_oy
2008-07-14
打赏
举报
回复
我的做法就是用
FCKEdit是一个javascript的组件,主要用于在线文本编辑.还有一个是tinyMCE功能类似下载地址http://tinymce.moxiecode.com/。
首先下载:http://sourceforge.net/project/downloading.php?group_id=75348&filename=FCKeditor_2.6.2.zip
然后解压后把包放到Webroot目录下,删去不需要的文件,页面代码如下:
<%@ page language="java" pageEncoding="UTF-8"%>
<% String context=request.getContextPath();%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'index.jsp' starting page</title>
<script type="text/javascript" src="<%=context%>/fckeditor/fckeditor.js"></script>
</head>
<body>
<script type="text/javascript">
var oFCKeditor = new FCKeditor("content");
oFCKeditor.BasePath = '<%=context%>/fckeditor/' ;
oFCKeditor.Height = 300 ;
oFCKeditor.ToolbarSet = 'Default';
oFCKeditor.Create() ;
</script>
</body>
</html>
这里只是最基本的使用,以下是载抄别人的代码:
基于java使用FCKedit......
基于java使用FCKeditor
基于java使用FCKeditor:
试用了一下FCKeditor,感觉不错(http://www.fckeditor.net)
稍稍整理了一下,过程如下:
1.下载
FCKeditor.java 2.3 (FCKeditot for java)
FCKeditor 2.2 (FCKeditor基本文件)
2.建立项目:tomcat/webapps/FCKeditor
3.FCKeditor.java 2.3解压后,把其中的web目录下的WEB-INF目录copy到FCKeditor下(里面有commons-fileupload.jar,FCKeditor-2.3.jar,web.xml等几个文件), 把其中的src目录下的FCKeditor.tld文件copy到FCKeitor/WEB-INF/下
4.修改web.xml:
把SimpleUploader中的配置属性enabled定义为true(开启文件上传功能)
添加标签定义:
<taglib>
<taglib-uri>/FCKeditor</taglib-uri>
<taglib-location>/WEB-INF/FCKeditor.tld</taglib-location>
</taglib>
5.解压FCKeditor2.2后,把目录/editor和fckconfig.js, fckeditor.js, fckstyles.xml, fcktemplates.xml四个文件copy到/FCKeditor下
删除目录/editor/_source,
删除/editor/filemanager/browser/default/connectors/下的所有文件
删除/editor/filemanager/upload/下的所有文件
删除/editor/lang/下的除了fcklanguagemanager.js, en.js, zh.js, zh-cn.js四个文件的所有文件
6.打开/FCKeditor/fckconfig.js
修改 FCKConfig.DefaultLanguage = 'zh-cn' ;
把FCKConfig.LinkBrowserURL等的值替换成以下内容:
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/jsp/connector" ;
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector" ;
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector" ;
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/simpleuploader?Type=File' ;
FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/simpleuploader?Type=Flash' ;
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/simpleuploader?Type=Image' ;
7.添加文件 /FCKeditor/test.jsp:
<%@ page language="java" import="com.fredck.FCKeditor.*" %>
<%@ taglib uri="/FCKeditor" prefix="FCK" %>
<script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>
<%--
三种方法调用FCKeditor
1.FCKeditor自定义标签 (必须加头文件 <%@ taglib uri="/FCKeditor" prefix="FCK" %> )
2.script脚本语言调用 (必须引用 脚本文件 <script type="text/javascript" src="/FCKeditor/fckeditor.js"></script> )
3.FCKeditor API 调用 (必须加头文件 <%@ page language="java" import="com.fredck.FCKeditor.*" %> )
--%>
<%--
<form action="show.jsp" method="post" target="_blank">
<FCK:editor id="content" basePath="/FCKeditor/"
width="700"
height="500"
skinPath="/FCKeditor/editor/skins/silver/"
toolbarSet = "Default"
>
input
</FCK:editor>
<input type="submit" value="Submit">
</form>
--%>
<form action="show.jsp" method="post" target="_blank">
<table border="0" width="700"><tr><td>
<textarea id="content" name="content" style="WIDTH: 100%; HEIGHT: 400px">input</textarea>
<script type="text/javascript">
var oFCKeditor = new FCKeditor('content') ;
oFCKeditor.BasePath = "/FCKeditor/" ;
oFCKeditor.Height = 400;
oFCKeditor.ToolbarSet = "Default" ;
oFCKeditor.ReplaceTextarea();
</script>
<input type="submit" value="Submit">
</td></tr></table>
</form>
<%--
<form action="show.jsp" method="post" target="_blank">
<%
FCKeditor oFCKeditor ;
oFCKeditor = new FCKeditor( request, "content" ) ;
oFCKeditor.setBasePath( "/FCKeditor/" ) ;
oFCKeditor.setValue( "input" );
out.println( oFCKeditor.create() ) ;
%>
<br>
<input type="submit" value="Submit">
</form>
--%>
添加文件/FCKeditor/show.jsp:
<%
String content = request.getParameter("content");
out.print(content);
%>
8.浏览http://localhost:8080/FCKeditor/test.jsp
ok!
9.上传遇到错误: internal server error 500,
直接引用servlet(com.fredck.FCKeditor.connector.ConnectorServlet)也遇到错误: "Provider org.apache.xalan.processor.TransformerFactoryImpl not found",
拷贝xalan.jar到lib目录就可以了
WPS Office之Word文字入门基础
1、让初学者从小白开始,善于运用WPS文字来
做
文档,解脱文档编辑的苦恼 2、让WPS文字使用者能够学习更多的文档编辑技巧,成为职场文档编辑高手
公众号怎么设置滑动文字_微信编辑上下滑动文字要怎么弄?具体怎么用?
微信编辑上下滑动文字要怎么弄?具体怎么用?有时候看到别人微信公众号推送的文章里面,文字居然可以上下滑动,...2、具体怎么用:首先我们将它点选进微信图文编辑
区
,这时我们看到:这个样式可以显示两段文字(后面...
怎么在图片上编辑文字?图片加字这样
做
怎么在图片上编辑文字?给图片加文字看起来是一个十分简单的操作,其实这其中也是蕴含着一些奥妙的。以上就是小编给大家介绍的在图片上编辑文字的办法,这几个方法除了可以添加文字之外,也可以进行添加贴纸、滤镜等...
怎样在图片上编辑文字?一分钟教你图片上编辑文字
迅捷图片转换器是一款主打各种类型的图片格式互转的软件,当然,它除了这个转换功能外,还能进行多种图片处理,比如今天要介绍的图片编辑文字。而手机中的图库除了能存储图片外,还能帮助我们在图片上编辑文字。作为...
如何在图片上编辑文字?在图片上编辑文字这样
做
很简单
以上就是小编给大家介绍的在图片上编辑文字的具体操作步骤了,希望能对大家编辑文字有所帮助。点击搜索进入网站,进入网站之后,我们看到网站的首页有着十分丰富的内容选项,点击选择。选项,上传需要添加文字的图片...
Web 开发
81,091
社区成员
341,718
社区内容
发帖
与我相关
我的任务
Web 开发
Java Web 开发
复制链接
扫一扫
分享
社区描述
Java Web 开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章