線上使用者

目前共有 0 位註冊使用者5 位訪客 在線上。

新會員

  • hihi
  • lady8904
  • xyz
  • arsisthesis
  • selly

書籍推薦

FCKeditor 模組 - 調整相關設定 ( Part V )

Arthur Yu 的照片
Average: 3 (3 votes)

在完成前面的幾項設定之後,要讓 FCKeditor 編輯器可以運作的更順暢和好用的話,就還需要做一些調整和設定,雖然阿舍有試過不做這些設定,還是一樣可以正常的使用 FCKeditor 編輯器,但是,還建議各位大德都設定一下,這樣使用起來功能會更整的哩。

首先要調整的是「管理」 ›「 網站設定」 ›「 輸入格式」›「Filtered HTML」,按右邊的「設定」進入後接著把下面的「換行轉換器」的勾給取消掉,這樣做的目的是為了讓 FCKeditor 可以對換行能有較大的控制能力。

接著,請按上方「檢視」旁的「設定」進入設定畫面,然後往下在「可使用的 HTML 標籤:」裡填入下列字串:

<a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <embed> <object> <strike> <caption>

這些是 FCKeditor 所使用的 HTML 標籤,如果沒有在這裡設定,那麼當各位大德在用 FCKeditor 編輯完資料後,在「輸入格式」又沒有選擇「Full HTML」,這樣就有一些 FCKeditor 產生的 HTML 碼會被濾掉,格式就會亂掉。

上面這項設定並不適用把預設的「輸入格式」設在「Full HTML」的大德,因為,「Full HTML」幾乎是不會過濾 HTML 碼的,所以就不用再排除了,不過「換行轉換器」還是要取消。

再來就是要修改在 FCKeditor 模組目錄下的 fckeditor.config.js 檔,這個檔和在 fckeditor 資料夾下的 fckconfig.js 有相同的功能,都是用來控制 FCKeditor 編輯器,但是,由於 Drupal 是經由 FCKeditor 模組來控制,因此,是以 fckeditor.config.js 檔的設定為主,也就是 fckeditor.config.js 檔的設定會蓋過 fckconfig.js 的設定。

而在這個 fckeditor.config.js 檔裡,最重要的工作之一,就是設定工具集,這裡所設定的工具集,會出現在 FCKeditor 的 Profile 設定裡供選擇,而其中出現選擇的項目:"DrupalFull"、"DrupalBasic"及"DrupalFiltered" 便是在 fckeditor.config.js 檔裡指定的,透過在這裡調整 FCKConfig.ToolbarSets["xxx"] 陣列的項目就可以改變這個工具集的按鈕項目。

除了設定可用的工具列外,另一個工作就是要在工具列裡,啟用 Drupal 的 teaser break 和 page break 按鈕,讓大德們在按下這兩個按鈕時,會產生出 <!--break--> 和 <!--pagebreak--> 標籤。

要達到這個目的,就必須調整 fckeditor.config.js 檔裡,請各位大德開啟 fckeditor.config.js 檔,並找出下列三個項目,然後把前面的 ; 符號刪除,並且存檔。'

FCKConfig.PluginsPath = '../../plugins/' ;
FCKConfig.Plugins.Add( 'drupalbreak' ) ;
FCKConfig.Plugins.Add( 'drupalpagebreak' ) ;

完成上述步驟之後,請找到大德想要加入此二按鈕的功具集,在其陣列中,加入下列項目

DrupalBreak
DrupalPageBreak

例如,原來的工具集是

['JustifyLeft','JustifyCenter','JustifyRight']

在加入列二個按鈕之後,應該會變成這樣才對。

['JustifyLeft','JustifyCenter','JustifyRight','DrupalBreak','DrupalPageBreak']

最後把 fckeditor.config.js 檔儲存並放回 FCKeditor 模組,這樣就算完成了。

dovis (未確認)
我发现FCK跟theme是有关的

我自制的一个theme是不能够正常的使用这个编辑器。。。是否要在*.tpl.php中增加什么语句呢?

dovis (未確認)
参照了http://drupal.fckedi

参照了http://drupal.fckeditor.net/troubleshooting#1
少了<?php print $closure; ?>语句 呵呵……

Arthur Yu
Arthur Yu 的照片
User offline. Last seen 2 日 17 小時 ago. Offline
Joined: 12/17/2007
使用 FCKeditor Default 試看看

Hello dovis 兄,

在 FCKeditor 的 CSS > Editor CSS:裡,預設是使用 「use theme css」選項,請把它改成「FCKeditor Default」試看看。

供參囉 !! ^^=。

阿舍...
阿舍的 Drupal 架站經驗談
http://drupal.soa.tw

阿舍...
阿舍的 Drupal 架站經驗談
http://drupal.soa.tw

dovis (未確認)
阿舍兄 我现在需要一

阿舍兄
我现在需要一个功能,有一篇很长的文章,需要把它分为几页显示,使用FCK中的'DrupalPageBreak'好像并不起作用。。。该如何解决呢?

Arthur Yu
Arthur Yu 的照片
User offline. Last seen 2 日 17 小時 ago. Offline
Joined: 12/17/2007
Pageing 模組..

Hello dovis 兄,

不知 dovis 兄有沒裝這個 Paging 模組,如果沒裝,請到下列網址去下載來裝看看,這個需要有 Paging 模組才能切的開成多頁的...。

http://drupal.org/project/paging

供參囉 !! ^^=。

阿舍...
阿舍的 Drupal 架站經驗談
http://drupal.soa.tw

阿舍...
阿舍的 Drupal 架站經驗談
http://drupal.soa.tw

fish (未確認)
The FCKeditor component

The FCKeditor component appears to be not installed correctly, because modules/fckeditor/fckeditor/fckconfig.js could not be found.
Please go to the FCKeditor homepage to download the latest version. After that you must extract the files to modules/fckeditor/fckeditor and make sure that the directory modules/fckeditor/fckeditor/editor and the file modules/fckeditor/fckeditor/fckeditor.js exist. Refer to the readme.txt for more information.

我一直出現這個訊息,是我那邊沒有設定好嗎?而且我在 fckeditor.config.js 檔裡,找不到那三個項目說~~也不能做修改,請各位幫幫我~

Arthur Yu
Arthur Yu 的照片
User offline. Last seen 2 日 17 小時 ago. Offline
Joined: 12/17/2007
請問安裝目錄 ?

Hello fish 兄,

請問一下載來的 FCKeditor 安裝在那個資料夾裡 ? 阿舍覺得可能是安裝的問題,下載來的檔案解壓縮之後,要放到 FCKEditor 模組資料夾下的 FCKEditor 資料夾裡,而且 FCKEditor 資料夾下面就是 FCKEditor 的程式,不用再有一個 FCkEditor 資料夾了。

供參囉 !! ^^=。

阿舍...
阿舍的 Drupal 架站經驗談 - http://drupal.soa.tw

阿舍...
阿舍的 Drupal 架站經驗談
http://drupal.soa.tw

大德 (未確認)
詢問word大量資料置入fck編輯器問題

阿舍您好:

我想詢問使用fck的一些問題,我將word的資料貼入fck,但在drupal的頁面上
出現了以下的錯誤訊息後網站就掛了,而秀出來的錯誤訊息指出~是mysql出了問題…但…是指什麼呢? 謝謝

user warning: MySQL server has gone away query: UPDATE cache_form SET data = 'a:41:{s:3:\"#id\";s:9:\"node-form\";s:3:\"nid\";a:2:{s:5:\"#type\";s:5:\"value\";s:6:\"#value\";s:3:\"107\";}s:3:\"vid\";a:2:{s:5:\"#type\";s:5:\"value\";s:6:\"#value\";s:3:\"107\";}s:3:\"uid\";a:2:{s:5:\"#type\";s:5:\"value\";s:6:\"#value\";s:2:\"25\";}s:7:\"created\";a:2:{s:5:\"#type\";s:5:\"value\";s:6:\"#value\";s:10:\"1321581841\";}s:4:\"type\";a:2:{s:5:\"#type\";s:5:\"value\";s:6:\"#value\";s:5:\"study\";}s:8:\"language\";a:2:{s:5:\"#type\";s:5:\"value\";s:6:\"#value\";s:7:\"zh-hant\";}s:7:\"changed\";a:2:{s:5:\"#type\";s:6:\"hidden\";s:14:\"#default_value\";s:10:\"1321581841\";}s:5:\"title\";a:6:

...................................
user warning: MySQL server has gone away query: SELECT * FROM menu_router WHERE path IN ('user/autocomplete','user/%','user') ORDER BY fit DESC LIMIT 0, 1 in D:\htdocs\www\web01\includes\menu.inc on line 315.

Arthur Yu
Arthur Yu 的照片
User offline. Last seen 2 日 17 小時 ago. Offline
Joined: 12/17/2007
這個應該是連不到 MySQL...

Hello,

"MySQL server has gone away query: " 這個應該是 Drupal 連不到 MySQL 伺服器的訊息哩 !

供參囉 ! ^^=

阿舍...
阿舍的 Drupal 架站經驗談
http://drupal.soa.tw

BloggerAds

Facebook Page

Drupal 新聞

Translate


訂閱服務...

最新回應

阿舍的隨手....