tinymceの右クリックメニューから画像のプロパティーオプションを削除したいと思います。私はtinymce 3.xのバージョンを使用しています私を助けてください。私はこのTinyMCEを最初の時間を使って、実際にここで求められているのと同じ問題への解決策を探しています指定したオプションをtinymceの右クリックメニューから削除するには?
function editor_remove_image(sender, menu) {
// create a new object
var otherItems = {};
for (var itemName in menu.items) {
var item = menu.items[itemName];
if (/^mce_/.test(itemName)) {
if (item.settings) {
if (item.settings.cmd == "mceImage" || item.settings.cmd == "mceAdvImage") {
// skip these items
continue;
}
}
}
// add all other items to this new object, so it is effectively a clone
// of menu.items but without the offending entries
otherItems[itemName] = item;
}
// replace menu.items with our new object
menu.items = otherItems;
}
から画像を削除するには、テーブルを除去するために、この同じプロセスですか? –