MCPcopy Create free account
hub / github.com/TruthHun/BookStack / Menu

Function Menu

static/wangEditor/js/wangEditor.js:1128–1140  ·  view source on GitHub ↗
(opt)

Source from the content-addressed store, hash-verified

1126
1127 // 定义构造函数
1128 var Menu = function (opt) {
1129 this.editor = opt.editor;
1130 this.id = opt.id;
1131 this.title = opt.title;
1132 this.$domNormal = opt.$domNormal;
1133 this.$domSelected = opt.$domSelected || opt.$domNormal;
1134
1135 // document.execCommand 的参数
1136 this.commandName = opt.commandName;
1137 this.commandValue = opt.commandValue;
1138 this.commandNameSelected = opt.commandNameSelected || opt.commandName;
1139 this.commandValueSelected = opt.commandValueSelected || opt.commandValue;
1140 };
1141
1142 Menu.fn = Menu.prototype;
1143

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected