[[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

これを変更しても,反映されずにひどいめにあった。恐らくブラウザキャッシュに保存されていたらしい。
editor/fckeditor.html  の以下の箇所を故意に書き換えて、エラーを起こさせた上で元に戻すことで対処した.
 LoadScript( '../fckconfig.js' ) ;

  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をアップロードされないように注意.
−−−−−
*使ってみて [#bdb65441]
サムネイルは自動生成されない。imgタグの拡大縮小はできるが、width,heightのパラメータのみである。
アップローダは便利.添付ファイル管理にもなる。但し,cgiや、ウイルスなどセキュリティに問題のあるファイルをアップロードされないように注意.

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS