feat: add imagevault images to RTE

This commit is contained in:
Christel Westerberg
2024-07-01 17:09:48 +02:00
parent 450160c2ba
commit 8956edbd2f
11 changed files with 577 additions and 33 deletions
+9 -1
View File
@@ -1,6 +1,8 @@
import { InsertResponse } from "../components/imageVaultImage"
import { RTEItemTypeEnum } from "./enums"
import type { EmbedTypesEnum, RTEItemType } from "./enums"
import type { Lang } from "@/constants/languages"
import type { EmbedTypesEnum, RTEItemType } from "./enums"
export interface Attributes {
[key: string]: any
@@ -36,3 +38,9 @@ export interface RTELinkAttrs extends Attributes {
target: HTMLAnchorElement["target"]
type: RTEItemTypeEnum.entry
}
export interface RTEImageVaultAttrs extends Attributes, InsertResponse {
height: string
width: string
style: string[]
}