Step3
ckfinder / config.php,找到33即return false改成return true。
Step4接著到63行,定上的目次位置。
改成
上功能:
最後在<header></header>中插足
上述述即可
不管是利用名、Pixnet、Xuite或Wordpress...等平台,在治理後台新增文章,城市有一很像Word的纂器,透此纂器便可撰文章,而且可以加粗、字色彩、超保持....片上等功能,即使完全不懂任何的HTML法,也可纂出一摩登的文章面出,而且作示後果,是相利便的功能,而棒的功能不成要自已,完不只天黑可能都爆肝了,所以要多加善用源,今天梅干就分享一好用的即即所得HTML文章纂器CKeditor,CKfinder上元件纂器不只可纂,同可上案乃至直伺器服中的案,且完全不消任何的程式,只要定一下,立刻就打造自已的文章纂器!
Step1下了後,二元件放在同一目次,新增upload料,用存放上案。Step2ckeditor / config.js,分新增以下法,制器用上功能。
自器西列:
若是是Cpanel 的 easyApache 4因有多PHP版本,所以先在站下放入 phpinfo();
找出相版本,我以php5.5例
找到
- <textarea class="ckeditor" cols="40" id="editor1" name="content" rows="10"></textarea>
代 - $baseUrl ='/uploads/'; //伺服器上路
代 
Step7接著上,再【案】。
好案後,再按上至伺服器就行!


Step 8哈~上成功! (若是Liunx主料的限777才行喔!)


CKeditorCKfinder互相的搭配下,不只可即即所得的HTML纂器之外,同可以上案,且完全不消任何的程式,只要定一下上目次位置,上的制,如就完成!吧~而二西若要用於易用,得官查看相授的部分。
如泛起
The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.
/etc/php.ini
- config.filebrowserBrowseUrl = 'ckfinder/ckfinder.html';
- config.filebrowserImageBrowseUrl = 'ckfinder/ckfinder.html?Type=Images';
- config.filebrowserFlashBrowseUrl = 'ckfinder/ckfinder.html?Type=Flash';
- config.filebrowserUploadUrl = 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'; //可上一般案
- config.filebrowserImageUploadUrl = 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';//可上
- conig.filebrowserFlashUploadUrl = 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';//可上Flash案
代 - vi /opt/cpanel/ea-php55/root/etc/php.ini
-
代 - <script src="ckeditor/ckeditor.js"></script>
代 新增一PHP,新增一form表,放入一textarea的文字框,而且class="ckeditor"必然要如定
- ['Source','-','Templates','-','Cut','Copy','Paste'],
- ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
- ['Link','Unlink','Anchor'],
- ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
- '/', ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
- ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
- ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
- ['Format','FontSize','-','TextColor','BGColor']
-
- 工具列列表:
- 'Source':原始
- 'Save':存
- 'NewPage':新案
- 'Preview':
- 'Templates':版
-
- 'Cut':剪下
- 'Copy':
- 'Paste':上
- 'PasteText':文字格局
- 'PasteFromWord':word 上
- 'Print':列印
- 'SpellChecker':拼字查
- 'Scayt':即拼查
-
- 'Undo':上一步
- 'Redo':重作
- 'Find':
- 'Replace':代替
- 'SelectAll':全
- 'RemoveFormat':消格局
-
- 'Form':表
- 'Checkbox':核取方
- 'Radio':按
- 'TextField':文字方
- 'Textarea':文字域
- 'Select':
- 'Button':按
- 'ImageButton':影象按
- 'HiddenField':埋位
-
- 'Bold':粗
- 'Italic':斜
- 'Underline':底
- 'Strike':除
- 'Subscript':下
- 'Superscript':上
- 'NumberedList':清
- 'BulletedList':目清
- 'Outdent':削排
- 'Indent':增添排
- 'Blockquote':援用文字
-
- 'JustifyLeft':靠左
- 'JustifyCenter':置中
- 'JustifyRight':靠右
- 'JustifyBlock':
-
- 'Link':超穿接
- 'Unlink':移除超保持
- 'Anchor':
-
- 'Image':片影象
- 'Flash':Flash
- 'Table':表格
- 'HorizontalRule':程度
- 'Smiley':色符
- 'SpecialChar':特符
- 'PageBreak':分符
-
- 'Styles':式
- 'Format':花
- 'Font':字
- 'FontSize':巨
-
- 'TextColor':文字色彩
- 'BGColor':景色彩
-
- 'Maximize':最大化
- 'ShowBlocks':示
- 'About':於CKEditor
代

Step6
看一下!候候本的文字框,即成超炫的HTML纂器,立地一下,一下片示,看是不是能上。
文章定位:
您可能以下文章有趣
< href="/audreyugem4/post/1381328913">

PHP函ereg_replace(),若何用preg_