layer.close(index) // 关闭弹出框
                        }
                    });
                }
            },'separator',
            'formula','graph','mermaid'
        ]
    });

    //粘贴上传图片
    $("#editor-md").on('paste', function (ev) {
        var data = ev.clipboardData;
        var items = (event.clipboardData || event.originalEvent.clipboardData).items;
        for (var index in items) {
            var item = items[index];
            if (item.kind === 'file') {
            