FrontPage FCKeditorに展開する

これで呼べば良い

<?php
include("../../FCKeditor/fckeditor.php");
?>
    <form action="savedata.php" method="post">
<?php
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = '/FCKeditor/';
$oFCKeditor->Value = 'Default text in editor';
$oFCKeditor->Create() ;
?>
     <br>
     <input type="submit" value="Submit">
   </form>

アップローダが動かない.

以下のように変更する

vim FCKeditor/fckconfig.js
//var _FileBrowserLanguage      = 'asp' ;       // asp | aspx | cfm | lasso | perl | php | py
//var _QuickUploadLanguage      = 'asp' ;       // asp | aspx | cfm | lasso | php
var _FileBrowserLanguage        = 'php' ;       // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage        = 'php' ;       // asp | aspx | cfm | lasso | php

これを変更しても,反映されずにひどいめにあった。

 vim editor/filemanager/browser/default/connectors/php/config.php
// SECURITY: You must explicitelly enable this "connector". (Set it to "true").
// $Config['Enabled'] = false ;
$Config['Enabled'] = true ;

// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/userfiles/' ;
vim editor/filemanager/upload/php/config.php
// SECURITY: You must explicitelly enable this "uploader".
$Config['Enabled'] = true ;

// Set if the file type must be considere in the target path.
// Ex: /userfiles/image/ or /userfiles/file/
$Config['UseFileType'] = false ;

// Path to uploaded files relative to the document root.
$Config['UserFilesPath'] = '/userfiles/' ;

/usrfilesは適当に名前を変えておく.パーミッションを適当に付けておく。 但し,cgiをアップロードされないように注意.


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS