FCKeditor如何禁止上传图片怎么设置参数?
只需要在fckconfig.js里增加
FCKConfig.ToolbarSets["Basic"] ;
把里面不需要的功能删了就可以了
继续阅读 »
只需要在fckconfig.js里增加
FCKConfig.ToolbarSets["Basic"] ;
把里面不需要的功能删了就可以了
继续阅读 »
This is a dialog-based plugin to handle formatting of source code for FCKeditor 2.5.x. It WON’T work with the new CKEditor (yet).(CKEditor 是FCKEditor 的升级版,不过,SyntaxHighlighter 还不能在 CKEditor 中实现代码高亮) It makes use of the SyntaxHighlighter 2.0.x javascript library available to download from Alex Gorbatchev’s project page (the older version 1.5.1 version is available from Google Code).
The plugin primiarily edits a <pre> tag with some custom attributes. Its mainly aimed at users editing blogs or content management systems where there is a requirement to format programming languages on a website that is being edited using FCKEditor.
The plugin will not format the code in FCKEditor – the SyntaxHighlighter javascript library dynamically generates a lot of formatted HTML at runtime, which would cause problems in FCKEditor.
1.删除editor/_source 目录
这是FCKeditor的源码,可以删除
2. 删除editor/_source 目录,这是FCKeditor的源码,可以删除
3. 删除editor/lang 目录中除en/zh/zh-cn的语言文件
4. 删除editor/filemanage/connectors 除php的目录
5. 修改fckconfig.js
a) 默认语言FCKConfig.DefaultLanguage = ‘en’ ;个性为“zh-cn”
b) FCKConfig.FontNames = ‘Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana’ ;
在这里增加中文字体,修改为:
FCKConfig.FontNames = ‘宋体;黑体;隶书;楷体_GB2312;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana’ ;
c) 修改服务端语言,将:
_FileBrowserLanguage
_QuickUploadLanguage
的值都改为“php”。
d) 更改表情图片。全部在:
FCKConfig.SmileyPath
FCKConfig.SmileyImages
FCKConfig.SmileyColumns
FCKConfig.SmileyWindowWidth
FCKConfig.SmileyWindowHeight
这几项中,请参照原值进行修改。
e) 自定义编辑器显示的工具栏及按钮
找到FCKConfig.ToolbarSets["Default"]这一段,并在里面选择所需要显示的按钮,不需要显示的删除掉。
6. 修改editor/filemanage/connectors/php/config.php。FCKeditor默认是关闭文件上传的,如果要打开, 必须修改这个文件。将$Config['Enabled'] = false ;改为“true”。
继续阅读 »
近期评论