mirror of
https://github.com/docmost/docmost.git
synced 2025-11-12 11:32:37 +10:00
features and bug fixes (#322)
* fix page import title bug * fix youtube embed in markdown export * add link to rendered file html * fix: markdown callout import * update local generateJSON * feat: switch spaces from sidebar * remove unused package * feat: editor date menu command * fix date description * update default locale code * feat: add more code highlight languages
This commit is contained in:
@ -6,10 +6,11 @@ export interface AttachmentOptions {
|
||||
HTMLAttributes: Record<string, any>;
|
||||
view: any;
|
||||
}
|
||||
|
||||
export interface AttachmentAttributes {
|
||||
url?: string;
|
||||
name?: string;
|
||||
mime?: string; // mime type e.g. application/zip
|
||||
mime?: string; // e.g. application/zip
|
||||
size?: number;
|
||||
attachmentId?: string;
|
||||
}
|
||||
@ -93,6 +94,15 @@ export const Attachment = Node.create<AttachmentOptions>({
|
||||
this.options.HTMLAttributes,
|
||||
HTMLAttributes,
|
||||
),
|
||||
[
|
||||
"a",
|
||||
{
|
||||
href: HTMLAttributes["data-attachment-url"],
|
||||
class: "attachment",
|
||||
target: "blank",
|
||||
},
|
||||
`${HTMLAttributes["data-attachment-name"]}`,
|
||||
],
|
||||
];
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user