代码拉取完成,页面将自动刷新
///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);
})();
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。