fckeditor 2.6.4 精装版
作者:情留メ蚊子 日期:2009-04-15
花了几天时间精装了以下fckeditor,使速度达到“飞”的速度。
演示:http://www.94qing.com/fckeditor
精装内容如下:
引用内容
详细看附件里面的说明文件。
调用方法:
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>
代码高亮使用方法:在页面添加
演示:http://www.94qing.com/fckeditor
精装内容如下:
引用内容FCKeditor 2.6.4 精简版修改内容如下:
删除模板、打印、保存、拼写检查
删除页面属性
删除右键菜单功能
删除显示区块、全屏功能
删除语言文件仅保留简体中文并精简语言包
删除表单功能
删除工具栏的折叠功能
删除文件上传和浏览服务器功能
删除特殊字符功能
删除选择更多颜色功能
删除除默认意外的两个模板
删除一些一般不会更改的配置选项及其连带功能
删除N多判断
优化显示工具栏使在各个浏览器下达到视觉统一
精简链接、图片、FLASH插入功能,确保最精简的视觉和最快捷的操作
多个细节调整
删除插件功能
增加代码高亮功能
删除模板、打印、保存、拼写检查
删除页面属性
删除右键菜单功能
删除显示区块、全屏功能
删除语言文件仅保留简体中文并精简语言包
删除表单功能
删除工具栏的折叠功能
删除文件上传和浏览服务器功能
删除特殊字符功能
删除选择更多颜色功能
删除除默认意外的两个模板
删除一些一般不会更改的配置选项及其连带功能
删除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>
<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>
评论: 7 | 引用: 0 | 查看次数: 3303
回复
|
| 取消审核]不错,一直想找个时间搞一个。你这有就借用一下了。 。Thank You!
firefox下也有问题,行号错位,行号到了代码区,选了不要行号还是显示行号,不自动换行。。。
终于搞好了,原来是 alert("复制成功!") 后少了一个分号;
如果有空的话能不能改成不要弹出复制成功的对话框的js代码啊(像论坛上一样)
我是菜鸟一个不会改。。。
最后多谢你。。。。。
如果有空的话能不能改成不要弹出复制成功的对话框的js代码啊(像论坛上一样)
我是菜鸟一个不会改。。。
最后多谢你。。。。。
情留メ蚊子 于 2009-06-21 09:46 PM 回复
删除 alert("复制成功!")
我是用在WordPress里的。复制内容到剪贴板试了N久都不能用,没效果,我ie8的。。。
我也把复制内容到剪贴板的JS放到了主题里的header.php里了。。。还试过放在footer.php...还是没效果啊!是不是JS代码错了啊???
我也把复制内容到剪贴板的JS放到了主题里的header.php里了。。。还试过放在footer.php...还是没效果啊!是不是JS代码错了啊???
情留メ蚊子 于 2009-06-21 09:28 PM 回复
没有错的。你先用单html页面测试一下
好像复制内容到剪贴板不能用!!!!
情留メ蚊子 于 2009-06-16 05:59 PM 回复
看说明文件
谢谢分享.我的窝已经加上你的信息了呵呵。
www.true-me.com
www.true-me.com
谢谢!一直想找FCKEditor的简化版,终止找到了!
发表评论
上一篇
下一篇

文章来自:
Tags:
相关日志: