/js/mage/adminhtml/wysiwyg/tiny_mce ディレクトリにある setup.js 設定ファイルにいくつかの変更を加えました。これらの変更はアップグレード後に失われますか? フロントエンドのテーマを作成するときのように、このフォルダを複製する方法はありますか?
ありがとう
はい、カスタムフォルダーをJSフォルダー内に追加し、独自のjsを作成してコードの下に貼り付けます。これは、js関数を上書きし、必要な場所で呼び出すことができます
if (typeof tinyMceWysiwygSetup != 'undefined') {
tinyMceWysiwygSetup.addMethods({
//here is example for you, suppose if you have changed something in below function
initialize: function(htmlId, config)
{
this.id = htmlId;
this.config = config;
varienGlobalEvents.attachEventHandler('tinymceChange', this.onChangeContent.bind(this));
this.notifyFirebug();
if(typeof tinyMceEditors == 'undefined') {
tinyMceEditors = $H({});
}
tinyMceEditors.set(this.id, this);
// Paste here your custom code
}
});
}
これがあなたの助けになるかもしれません。