fckeditor 2.6.4 精装版

  花了几天时间精装了以下fckeditor,使速度达到“飞”的速度。
  演示:http://www.94qing.com/fckeditor
  精装内容如下:
  
引用内容 引用内容
FCKeditor 2.6.4 精简版修改内容如下:
删除模板、打印、保存、拼写检查
删除页面属性
删除右键菜单功能
删除显示区块、全屏功能
删除语言文件仅保留简体中文并精简语言包
删除表单功能
删除工具栏的折叠功能
删除文件上传和浏览服务器功能
删除特殊字符功能
删除选择更多颜色功能
删除除默认意外的两个模板
删除一些一般不会更改的配置选项及其连带功能
删除N多判断
优化显示工具栏使在各个浏览器下达到视觉统一
精简链接、图片、FLASH插入功能,确保最精简的视觉和最快捷的操作
多个细节调整
删除插件功能
增加代码高亮功能  

详细看附件里面的说明文件。
  调用方法:
asp:

<!-- #INCLUDE file="FCKeditor/FCKeditor.asp" -->
<form action="" method="post" target="_blank">
<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/FCKeditor/"
oFCKeditor.ToolbarSet = "Default"
oFCKeditor.Width = "100%"
oFCKeditor.Height = "400"
oFCKeditor.Value = "1234123123"
oFCKeditor.Create "Content"
%>
<input type="submit" value="Submit" />
</form>


php:

<?php  include('fckeditor.php') ;  
$sBasePath = $_SERVER['PHP_SELF'] ;
$sBasePath = dirname($sBasePath).'/';
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath   = $sBasePath ;
$oFCKeditor->Value  = '';
$oFCKeditor->Create(); ?>


js:

<script src="FCKeditor/FCKeditor.js"></script>
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'Content' ) ;
oFCKeditor.BasePath = 'FCKeditor/' ;
oFCKeditor.ToolbarSet = 'Basic' ;
oFCKeditor.Width = '100%' ;
oFCKeditor.Height = '400' ;
oFCKeditor.Value = '' ;
oFCKeditor.Create() ;
</script>


代码高亮使用方法:在页面添加
<link rel="stylesheet" href="fckeditor/fck_codes.css" type="text/css"/>
<script language="javascript">
function copyIdText(id) {
    var id = document.getElementById(id);
    copy(id.innerText, id)
}
function copy(txt, obj) {
    if (window.clipboardData) {
        window.clipboardData.clearData();
        window.clipboardData.setData("Text", txt);
        alert("复制成功!");
        if (obj.style.display != 'none') {
            var rng = document.body.createTextRange();
            rng.moveToElemaaentText(obj);
            rng.scrollIntoView();
            rng.select();
            rng.collapse(false)
        }
    } else {
        alert("请选中文本,使用 Ctrl+C 复制!")
    }
}
</script>




文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags: fckeditor
相关日志:
评论: 7 | 引用: 0 | 查看次数: 3303
乐乐
回复回复乐乐 [2009-06-22 11:00:19 |  | del | 取消审核]
不错,一直想找个时间搞一个。你这有就借用一下了。 。Thank You!
无风
回复回复无风 [2009-06-21 22:03:52 | del | 取消审核]
firefox下也有问题,行号错位,行号到了代码区,选了不要行号还是显示行号,不自动换行。。。
无风
回复回复无风 [2009-06-21 21:43:16 | del | 取消审核]
终于搞好了,原来是 alert("复制成功!") 后少了一个分号;
如果有空的话能不能改成不要弹出复制成功的对话框的js代码啊(像论坛上一样)
我是菜鸟一个不会改。。。
最后多谢你。。。。。


情留メ蚊子 于 2009-06-21 09:46 PM 回复
删除   alert("复制成功!")
无风
回复回复无风 [2009-06-21 21:14:47 | del | 取消审核]
我是用在WordPress里的。复制内容到剪贴板试了N久都不能用,没效果,我ie8的。。。
我也把复制内容到剪贴板的JS放到了主题里的header.php里了。。。还试过放在footer.php...还是没效果啊!是不是JS代码错了啊???

情留メ蚊子 于 2009-06-21 09:28 PM 回复
没有错的。你先用单html页面测试一下
wasd
回复回复wasd [2009-06-16 17:57:04 | del | 取消审核]
好像复制内容到剪贴板不能用!!!!

情留メ蚊子 于 2009-06-16 05:59 PM 回复
看说明文件
true
回复回复true [2009-05-23 06:52:12 | del | 取消审核]
谢谢分享.我的窝已经加上你的信息了呵呵。
www.true-me.com
howgoo
回复回复howgoo [2009-05-13 09:52:07 |  | del | 取消审核]
谢谢!一直想找FCKEditor的简化版,终止找到了!

发表评论
昵 称:
密 码:    游客发言不需要密码.
邮 箱:    支持Gravatar头像
网 址:
验证码:    点击输入框
内 容:
您一共可以输入1000个字
选 项:
不想保留信息请删除cookie
发表评论后您发表的内容自动复制到了剪贴板
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.
字数限制 1000 字 | UBB代码 开启 | [img]标签 关闭