ホームページ  >  記事  >  バックエンド開発  >  Yii-kindeditor-テンプレートの編集、定義済み変数の挿入_PHP チュートリアル

Yii-kindeditor-テンプレートの編集、定義済み変数の挿入_PHP チュートリアル

WBOY
WBOYオリジナル
2016-07-14 10:09:25907ブラウズ

1. YIi 拡張ディレクトリ内の Kdeditor.php ファイルを変更し、js オブジェクト宣言をメソッドの外側に置きます。

[html]
$js=<<
var editor_$this->id
KindEditor.ready(function(K) {
edi​​tor_$this->id = K.create('#$this->id',
$properties_string
);
});
F;
2.ファイルコードの表示
[html]
  • テンプレート変数:
  • [html]