请参考下面的代码将富文本编辑框的右键菜单进行调整
GC.Spread.Sheets.Designer.getCommand("richText").enableContext = "";
var newFun = GC.Spread.Sheets.Designer.getCommand("richText")
var config = GC.Spread.Sheets.Designer.DefaultConfig;
config.commandMap = {
"richText":newFun
}
var designer = GC.Spread.Sheets.Designer.findControl('gc-designer-container');
designer.setConfig(config);
|