Fckeditor(fckeditor 文本编辑器的问题!非常棘手啊!)

2024-02-03 15:50:02 :30

fckeditor(fckeditor 文本编辑器的问题!非常棘手啊!)

各位老铁们,大家好,今天由我来为大家分享fckeditor,以及fckeditor 文本编辑器的问题!非常棘手啊!的相关问题知识,希望对大家有所帮助。如果可以帮助到大家,还望关注收藏下本站,您的支持是我们最大的动力,谢谢大家了哈,下面我们开始吧!

本文目录

fckeditor 文本编辑器的问题!非常棘手啊!

在线器这个东东配置很麻烦!我这么配的成功了,不知道你行不行!在要显示的jsp页面中导入《%@ taglib uri = "/WEB-INF/FCKeditor.tld" prefix = "fck" %》把FCKeditor文件夹复制到项目根目录下 把wEB-INF下的FCKeditor.tld和web.xml复制到WEB-INf下把lib下的2个jar文件复制到lib里面改代码:把 文本域textear的代码改成留言信息:《fck:editor id="neirong" basePath="/Car/FCKeditor/"width="300" height="300" skinPath="/Car/FCKeditor/editor/skins/silver/" toolbarSet="Default"》input《/fck:editor》 注意Car是项目名如何设置自己想要的控件呢 ?在KCFeditor下找到最基本的设置文件 fckconfig.js 把里面的difault去掉 在Basic里面加入自己想要的还得把 jsp页面里面文本域代码中的toolbarSet=“default”改成 Basic

fckeditor禁止一些功能

删除FCKeditor\editor\filemanager\目录中的内容,这样就无法再使用上传功能。打开fckconfig.js找到FCKConfig.LinkUpload = true 以下都;改为falseFCKConfig.ImageUpload = true ;FCKConfig.FlashUpload = true ;FCKConfig.LinkBrowser = true ;FCKConfig.ImageBrowser = true ;FCKConfig.FlashBrowser = true ;找到FCKConfig.ToolbarSets=这里是工具栏上的图标,可以将不要的去掉。

FCKEditor的使用方法

将fckeditor添加到项目里使用方法1:在页面中添加textarea:《TEXTAREA id=content name="content" rows=20 cols=80》《/TEXTAREA》添加js代码:《!-- fckeditor --》《script type="text/javascript" src="fckeditor/fckeditor.js"》《/script》《script type="text/javascript"》window.onload = function(){var sBasePath = "《%=request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/fckeditor/" %》"var oFCKeditor = new FCKeditor( ’content’ ) ;//content是textarea的nameoFCKeditor.BasePath = sBasePath ;oFCKeditor.ReplaceTextarea() ;}《/script》方法2:《script src="fckeditor/fckeditor.js"》《/script》然后将表单中的textarea替换为以下代码:《script》var editor = new FCKeditor( ’content’); //content是textarea的nameeditor.BasePath = ’xiangmu/fckeditor/’;editor.Heigth = 200;editor.ToolbarSet = ’Basic’; //还可以使用’Default’ editor.Create();《/script》

FckEditor自定义按钮

Fckeditor 那个超链接功能不好改吧,还不如自己做一个上传功能,给你提供个例子,找着做吧自定义工具栏按钮需要修改的文件:1. fckeditor/fckconfig.js2. fckeditor/editor/lang/zh-cn.js3. fckeditor/editor/_source/internals/fckregexlib.js4. fckeditor/editor/_source/internals/fckcommands.js5. fckeditor/editor/_source/internals/fcktoolbaritems.js具体步骤:第一步:修改fckconfig.js文件1. 我们找到FCKConfig.ToolbarSets这一行,在最后即’About’后添加一个工具按钮MyToolBar,名称为MyToolBar;2. 找到FCKConfig.DefaultLanguage,修改语言为:zh-cn;3. 找到FCKConfig.AutoDetectLanguage,设置为false,即关闭语言的自动检测功能;第二步:修改zh-cn.js文件1. 在最后加入:MyToolBar : "我的自定义工具栏"2. 注意它前面的一个最后要加多一个逗号;第三步:修改fckregexlib.js文件找到NamedCommands这一行,在最后加入:MyToolBar第四步:修改 fckcommands.js 文件找到FCKCommands.GetCommand函数,在其中加入:case ’MyToolBar’:oCommand = new FCKDialogCommand(’MyToolBar’, FCKLang.MyToolBar, ’dialog/MyToolBar.html’, 450, 400 );break ;第五步:修改fcktoolbaritems.js文件找到FCKToolbarItems.GetItem函数,在其中加入:case ’MyToolBar’:oItem = new FCKToolbarButton(’MyToolBar’, FCKLang.MyToolBar, null, null, null, true, 72);break ;这里72是表示skins目录下各个皮肤目录中fck_strip.gif图片文件中的图片索引,我们这里用和命令ShowBlocks一样的图标(一个问号图片)。第六步:在目录fckeditor/editor/dialog/ 下面创建一个MyToolBar.html文件,内容如下:《html》《head》《title》MyTool Dialog Page《/title》《meta http-equiv="Content-Type" content="text/html; charset=utf-8" /》《meta content="noindex, nofollow" name="robots" /》《script src="common/fck_dialog_common.js" type="text/javascript"》《/script》《script type="text/javascript"》var oEditor = window.parent.InnerDialogLoaded();window.onload = function() {window.parent.SetOkButton(true);window.parent.SetAutoSize(true);}function Ok() {var oActiveEl = oEditor.FCK.EditorDocument.createElement(’SPAN’);oActiveEl.innerHTML = GetE(’txtName’).value;oEditor.FCKUndo.SaveUndoStep();oActiveEl = oEditor.FCK.InsertElement(oActiveEl);return true;}《/script》《/head》《body style="overflow: hidden"》《table width="100%" style="height: 100%"》《tr》《td align="center"》请输入文字:《input id="txtName" type="text" /》《/td》《/tr》《/table》《/body》《/html》

FCKEditor如何使用

Js引用,适用任何开发语言:《script type="text/javascript" src="/fckeditor/fckeditor.js"》《/script》《form action="" method="post"》....文章内容:《script language="javascript" type="text/javascript"》var sBasePath = ’/fckeditor/’ ;//基本路径,这里一定要设置对,fckeditor相对于根目录的路径 var oFCKeditor = new FCKeditor(’FCkeditor1’ ) ;//名称,提交时直接按名称’FCkeditor1’获取值就行 oFCKeditor.BasePath = sBasePath ; oFCKeditor.Width=800; oFCKeditor.Height = 100 ; oFCKeditor.Config =sBasePath + ’editor/skins/office2003/’;//皮肤 oFCKeditor.Config = ’Default’ ;//工具栏名称Default,Basic oFCKeditor.Value = ’内容’ ; oFCKeditor.Create() ;//创建器《/script》《/form》其它的就上网搜一下,太多了,写不过来

网页编辑器用的是FCKeditor 是什么

  • 网页器用的是FCKeditor: 这个就是一个框架,专门实现的网页器的。SqlHelper是一个微软完全开放源码的数据库操作类,用于简化你重复的去写那些数据库连接。

  • FCK说的就是平时我们上网,跟别人留言呀,可以插入字符,图片之类的那个文本器。SQL这个嘛,就是网站所用的数据库。你知道网站内容是放到数据库里面,用代码调用到前台页面并且显示的

fckeditor上传图片问题 不能上传

在FCKEditor2.4.1版在.net环境中图片上传的正确配置,以供大家参考,以少走弯路。asp.net下的fckeditor2.4.1配置用最简单的语言描述一下。其它配置和优化就不说了,只说怎么让它在asp.net环境下能用,能上传。1、下载文件

如果你还想了解更多这方面的信息,记得收藏关注本站。

fckeditor(fckeditor 文本编辑器的问题!非常棘手啊!)

本文编辑:admin
: fckeditor,edit,
Copyright © 2022 All Rights Reserved 威海上格软件有限公司 版权所有

鲁ICP备20007704号

Thanks for visiting my site.