|
@@ -484,6 +484,7 @@ interface IPreview {
|
|
theme?: IPreviewTheme;
|
|
theme?: IPreviewTheme;
|
|
/** @link https://ld246.com/article/1549638745630#options-preview-actions */
|
|
/** @link https://ld246.com/article/1549638745630#options-preview-actions */
|
|
actions?: Array<IPreviewAction | IPreviewActionCustom>;
|
|
actions?: Array<IPreviewAction | IPreviewActionCustom>;
|
|
|
|
+ showImage?: boolean;
|
|
|
|
|
|
/** 预览回调 */
|
|
/** 预览回调 */
|
|
parse?(element: HTMLElement): void;
|
|
parse?(element: HTMLElement): void;
|
|
@@ -619,6 +620,11 @@ interface IOptions {
|
|
mode?: "wysiwyg" | "sv" | "ir";
|
|
mode?: "wysiwyg" | "sv" | "ir";
|
|
/** @link https://ld246.com/article/1549638745630#options-preview */
|
|
/** @link https://ld246.com/article/1549638745630#options-preview */
|
|
preview?: IPreview;
|
|
preview?: IPreview;
|
|
|
|
+ previewImage?: (img: HTMLImageElement) => void;
|
|
|
|
+ link?: {
|
|
|
|
+ open?: boolean;
|
|
|
|
+ trigger?: (href: string) => void;
|
|
|
|
+ },
|
|
/** @link https://ld246.com/article/1549638745630#options-hint */
|
|
/** @link https://ld246.com/article/1549638745630#options-hint */
|
|
hint?: IHint;
|
|
hint?: IHint;
|
|
/** @link https://ld246.com/article/1549638745630#options-toolbarConfig */
|
|
/** @link https://ld246.com/article/1549638745630#options-toolbarConfig */
|