@@ -17,7 +17,6 @@ window.vditor = new Vditor('vditor', {
enable: true,
type: 'text'
},
- height: 500,
hint: {
emojiPath: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/images/emoji',
emojiTail: '<a href="https://hacpai.com/settings/function" target="_blank">设置常用表情</a>',
@@ -139,7 +139,7 @@ interface IUpload {
headers?: { [key: string]: string };
/** 每次上传前都会重新设置请求头 */
- setHeaders(): { [key: string]: string };
+ setHeaders?(): { [key: string]: string };
/** 上传成功回调 */
success?(editor: HTMLPreElement, msg: string): void;