1.このファイルをダウンロードして、eファイルを上書きします。
2.エンパイアCMSバックグラウンドにログインし、[システム]-[データシートとシステムモデル]-[データシートの管理]をクリックします。使用するシステムデータシートの[フィールドの管理]をクリックします(デフォルトは、編集者が編集したニュースシステムデータシートです)これは記事システムのデータテーブルなので、記事システムデータテーブルの[管理フィールド]を変更します)-[入力フォーム]の[ニューステキストフィールドを変更]で、htmlコードを置き換えます。
<?php $ ziduan = 'newstext'; //エディターが使用するフィールド名 if($ enews == 'MAddInfo' || $ enews == 'MEditInfo'){//フロントデスクでの提出 $ qiantai = 1; $ ziduanzhi = $ ecmsfirstpost == 1? "" DoReqValue($ mid、$ ziduan、stripSlashes($ r [$ ziduan])); } else {// backstage $ qiantai = 0; $ ziduanzhi = $ ecmsfirstpost == 1? "" :stripSlashes($ r [$ ziduan]); } ?> <script> var classid = '<?= $ classid?>'、infoid = '<?= $ id?>'、filepass = '<?= $ filepass ?> '、ehash =' <?= $ ecms_hashur [ehref]?> '、qiantai =' <?= $ qiantai?> '; //パラメータがエディタに渡され、ダイヤモンドモード7.2バージョンのサポートが追加されます> <script type = "text / javascript" charset = "utf-8" src = "<?= $ public_r ['newsurl']?> e / extend / ueditor / ueditor.config。js "> </ script> <script type = "text / javascript" charset = "utf-8" src = "<?= $ public_r ['newsurl']?> e / extend / ueditor / ueditor.all.min.js"> </ script> <script type = "text / javascript" charset = "utf-8" src = "<?= $ public_r ['newsurl']?> e / extend / ueditor / ueditor.toolbarconfig.js"> </ script> <textarea id = "<?= $ ziduan?>" name = "<?= $ ziduan?>"> <?= $ ziduanzhi?> </ textarea> <script type = "text / javascript"> <?= $ ziduan? > = UE.getEditor( '<?= $ ziduan?>'、{ serverUrl: "<?= $ public_r ['newsurl']?> e / extend / ueditor / php / controller.php"、//自己的请求インターフェース ツールバー:デフォルト、//ツール栏構成文、具体的に参照ueditor.toolbarconfig。jsファイルには、 pageBreakTag: ''、//インペリアルページングタグ initialFrameWidth: '100%'、//エディターの幅 initialFrameHeight:300 //エディターの高さ //などが記載されています。その他の構成は自分で追加します。 OK )); //カスタムリクエストパラメータ <?= $ ziduan?>。ready(function(){ <?= $ ziduan?>。execCommand( 'serverparam'、{ 'filepass': '<?= $ filepass?>'、//変更されたときは情報ID 'classid': '<?= $ classid ?>'、'qiantai':<?= $ qiantai?> }); }); </ script>