FCKeditor线上网页编辑器使用说明.docVIP

  • 1
  • 0
  • 约1.15千字
  • 约 3页
  • 2020-06-11 发布于湖北
  • 举报
FCKeditor線上網頁編輯器使用說明 FCKeditor是一種功能強大的線上網頁編輯器,為了便利部落格的成員編輯文章,因此我們在該網頁內嵌這個編輯器,以讓使用者更容易在文章中顯示他們想要的網頁效果。 FCKeditor的安裝及設定方式如下: 首先到 /download下載軟體並安裝。 圖1下載FCKeditor畫面 以下是設定FCKeditor,以嵌入編輯文章頁面的步驟: Step 1 在網站根目錄WWW裡建立fckeditor資料夾,把下載的檔案解壓縮後放入此一資料夾裡(注意資料夾名稱全為小寫)。 Step 2 在要使用FCKeditor編輯器的頁面引入fckeditor資料夾的fckeditor.php檔案。做法:在程式前面加入下面的語法: include_once(fckeditor/fckeditor.php)?; Step 3 將以下程式碼加入網站的表單,表單程式abc.php在WWW根目錄裡。紅色字部份是這個表單最後會將使用者輸入的資料放入的字串名稱,BasePath為fckeditor資料夾的路徑,藍色字的Value值可以設定在未編輯前文字區域上顯示的文字。 form action=abc.php method=post ?php $oFCKeditor = new FCKeditor(FCKeditor1)?; $oFCKeditor-BasePath = fckeditor/?; $oFCKeditor-Value = pThis is some strongsample text/strong. You are using a href=/FCKeditor/a./p?; $oFCKeditor-Create()?; ? /form Step 4 其他設定 另外必須在abc.php加入以下程式碼,以讀入使用者輸入的資料作處理 $get_string = stripslashes( $_POST[FCKeditor1] ) ; 如果想修改編輯文章區塊的大小,可在$oFCKeditor-Create()?;這行之前加入以下程式碼 $oFCKeditor-Width = 100%; $oFCKeditor-Height = 200; 除了以上步驟外,更多的詳細內容請參考 /FCKeditor_2.x/Developers_Guide/Integration/PHP

文档评论(0)

1亿VIP精品文档

相关文档