/** * @description video 菜单 panel tab 配置 * @author tonghan */ import editor from '../../editor/index' import { PanelConf } from '../menu-constructors/Panel' import { getRandom } from '../../utils/util' import $ from '../../utils/dom-core' export default function (editor: editor, video: string): PanelConf { // panel 中需要用到的id const inputIFrameId = getRandom('input-iframe') const btnOkId = getRandom('btn-ok') /** * 插入链接 * @param iframe html标签 */ function insertVideo(video: string): void { editor.cmd.do('insertHTML', video + '