Add settings for image upload
Build Plugin JAR File / build (push) Successful in 2m12s Details
Build Plugin JAR File / github-release (push) Has been skipped Details

Fix #30
This commit is contained in:
zhengyi 2024-01-12 18:20:20 +08:00
parent ff77aa20dd
commit ce131c4111
4 changed files with 38 additions and 13 deletions

View File

@ -1,15 +1,3 @@
export declare type EditorConfig = {
basic: {
enable_render: boolean;
defaultRenderMode: "ir" | "wysiwyg" | "sv" | undefined;
typeWriterMode: boolean;
codeBlockPreview: boolean;
enableQuickInsert: boolean;
quickInsertUrl: [];
disableHTMLBlockPreview: boolean;
};
};
export declare type Options = {
defaultRenderMode: "ir" | "wysiwyg" | "sv" | undefined;
typeWriterMode: boolean;

View File

@ -0,0 +1,29 @@
export declare type EditorConfig = {
basic: {
enable_render: boolean;
defaultRenderMode: "ir" | "wysiwyg" | "sv" | undefined;
typeWriterMode: boolean;
codeBlockPreview: boolean;
enableQuickInsert: boolean;
quickInsertUrl: [];
disableHTMLBlockPreview: boolean;
};
extension: {
allowImageType: string;
};
};
export const defaultEditorConfig: EditorConfig = {
basic: {
enable_render: true,
defaultRenderMode: "ir",
typeWriterMode: true,
codeBlockPreview: true,
enableQuickInsert: false,
quickInsertUrl: [],
disableHTMLBlockPreview: false,
},
extension: {
allowImageType: "png,jpg,jpeg,bmp,gif,webp,svg",
}
}

File diff suppressed because one or more lines are too long

View File

@ -51,6 +51,14 @@ spec:
label: 禁用HTML代码块隐藏
help: 开启此选项后HTML代码块将会一直显示
value: false
- group: extension
label: 文件格式
formSchema:
- $formkit: text
name: allowImageType
label: 允许的图片格式
help: 自定义允许上传的图片格式
value: "png,jpg,jpeg,bmp,gif,webp,svg"
- group: render
label: 渲染
formSchema: