305 Star 1.5K Fork 291

GVPNotadd/Neditor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
multiMenu.js 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
///import core
///import uicore
///commands 表情
;(function() {
var utils = baidu.editor.utils,
Popup = baidu.editor.ui.Popup,
SplitButton = baidu.editor.ui.SplitButton,
MultiMenuPop = (baidu.editor.ui.MultiMenuPop = function(options) {
this.initOptions(options);
this.initMultiMenu();
});
MultiMenuPop.prototype = {
initMultiMenu: function() {
var me = this;
this.popup = new Popup({
content: "",
editor: me.editor,
iframe_rendered: false,
onshow: function() {
if (!this.iframe_rendered) {
this.iframe_rendered = true;
this.getDom("content").innerHTML =
'<iframe id="' +
me.id +
'_iframe" src="' +
me.iframeUrl +
'" frameborder="0"></iframe>';
me.editor.container.style.zIndex &&
(this.getDom().style.zIndex =
me.editor.container.style.zIndex * 1 + 1);
}
}
// canSideUp:false,
// canSideLeft:false
});
this.onbuttonclick = function() {
this.showPopup();
};
this.initSplitButton();
}
};
utils.inherits(MultiMenuPop, SplitButton);
})();
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/notadd/neditor.git
git@gitee.com:notadd/neditor.git
notadd
neditor
Neditor
master

搜索帮助