让sablog发布文章更快

主要是修改fckeditor的加载
admin/editor/fckeditor.php
sablog的FCKeditor默认的是 
$this->ToolbarSet = 'Default' ;
改为
$this->ToolbarSet = 'Basic' ;
admin/editor/fckconfig.js可以设置需要加载的东东
FCKConfig.ToolbarSets["Default"] = [
 ['Style','FontFormat','FontName','FontSize'],
 ['TextColor','BGColor'],
 ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
 ['Bold','Italic','Underline','Subscript','Superscript'],
 ['Undo','Redo'],
 '/',
 ['Source','Preview'],
 ['Cut','Copy','Paste','PasteText','PasteWord'],
 ['OrderedList','UnorderedList','Outdent','Indent'],
 ['Link','Unlink','Anchor'],
 ['Image','Flash','Table','Rule','SpecialChar']
] ;

FCKConfig.ToolbarSets["Basic"] = [
 ['Bold','Italic','OrderedList','UnorderedList','Link','Unlink']
] ;

Basic的东东好像也太小了点,不过够用就行了,不行再加一点
['Style','FontFormat','FontName','FontSize','TextColor','BGColor','JustifyLeft','JustifyCenter',
'JustifyRight','PasteWord','Bold','Underline','OrderedList','UnorderedList','Link','Unlink','Image',
'Flash','Table','Rule','SpecialChar','Preview','Source']
http://www.luoq.net/admin/editor/
下面这个是设置默认展开/折叠工具栏的状态
设置为默认折叠
FCKConfig.ToolbarStartExpanded    = false ;  //true/false默认展开/折叠工具栏
这样,加载的时候速度又快了一些

关键词: 原创 , sablog , php

上一篇: 調試PHP的時候顯示更詳細的報錯信息
下一篇: javascript+XML+PHP+MYSQL实现的一个基础遍历

相关文章
访客评论
#1
回复 改装 2007-02-08, 16:40:24
http://blog.fengyunweb.net/default.php?action=show&id=218
发表评论

评论内容 (必填):