[英]How to instal CKEditor Version 4.2 to YII
如何將CKEditor 4.2版安裝到YII框架中?
像這樣的指令: http ://www.yiiframework.com/extension/ckeditor-integration/不起作用,因為4.2版本中沒有ckeditor.php文件。 如果我使用此說明,則會出現此錯誤:
include(CKEditor.php)[function.include]:打開流失敗:沒有這樣的文件或目錄
因此,我將再次重復我的問題:如何將CKEditor 4.2版安裝到YII框架中?
謝謝。
為什么特別是CKEditor Version 4.2
? 隨機問題。
如果可以使用其他富文本編輯器,那么我建議使用tinyMCE 。
以下代碼用於實現tinyMCE。
<script type="text/javascript">
tinyMCE.init({
// General options
mode : "exact",
elements : "ta1",
theme : "advanced",
plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",
inlinepopups_skin: "themepixels",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,outdent,indent,blockquote,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "pastetext,pasteword,|,bullist,numlist,|,undo,redo,|,link,unlink,image,help,code,|,preview,|,forecolor,backcolor,removeformat,|,charmap,media,|,fullscreen",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
skin : "themepixels",
// Example content CSS (should be your site CSS)
content_css : "<?php echo $this->module->assetsUrl; ?>/css/plugins/tinymce.css",
// Drop lists for link/image/media/template dialogs
template_external_list_url : "js/template_list.js",
external_link_list_url : "js/link_list.js",
external_image_list_url : "js/image_list.js",
media_external_list_url : "js/media_list.js",
// Replace values for the template plugin
template_replace_values : {
username : "Some User",
staffid : "991234"
}
});
</script>
點擊鏈接以獲取更多詳細信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.