vdc-editor 0.1.221 → 0.1.222

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,14 @@
1
1
  import { Extension } from '@tiptap/core';
2
2
 
3
- export declare const TIME_HIGH_LIGHTER_EXTENSION_NAME = "time-highlighter";
3
+ declare module '@tiptap/core' {
4
+ interface Commands<ReturnType> {
5
+ toggleTimeHighlight: {
6
+ toggleTimeHighlight: () => ReturnType;
7
+ };
8
+ }
9
+ }
4
10
  export interface TimeHighlighterOptions {
5
11
  additionalTimeWords: string[];
12
+ enabled?: boolean;
6
13
  }
7
14
  export declare const TimeHighlighter: Extension<TimeHighlighterOptions, any>;
@@ -189,5 +189,7 @@ export declare const useTiptapStore: () => {
189
189
  editorContentMobile: import('vue').Ref<Editor | undefined, Editor | undefined>;
190
190
  setEditorContentMobile: (editorInstance: Editor) => void;
191
191
  footerTargetRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
192
+ editorContentInstance: import('vue').Ref<Editor | undefined, Editor | undefined>;
193
+ setEditorContentInstance: (editorInstance: Editor) => void;
192
194
  };
193
195
  export {};
package/lib/src/type.d.ts CHANGED
@@ -467,6 +467,10 @@ export interface EditorProps {
467
467
  */
468
468
  isEditorView?: boolean;
469
469
  isEditorViewSplitContent?: boolean;
470
+ /**
471
+ * Editor anchor content instance
472
+ */
473
+ editorContentInstance?: Editor;
470
474
  }
471
475
  export interface EditorEmits {
472
476
  (event: 'enter'): void;
@@ -59,3 +59,4 @@ export declare const PAINTER = "painter";
59
59
  export declare const CLEAR = "clear";
60
60
  export declare const SPELLCHECKER = "spellchecker";
61
61
  export declare const FONTSIZEINCREASEDECREASE = "fontSizeIncreaseDecrease";
62
+ export declare const TIME_HIGH_LIGHTER = "time-highlighter";
@@ -1,4 +1,4 @@
1
- import { A as i, r as t, q as o, s as r, E as d, p, t as u, p as E, B as l, v as n, F as S, y as m, u as w, w as x, z as f, x as g } from "./index-DFgS89Yu.mjs";
1
+ import { A as i, r as t, q as o, s as r, E as d, p, t as u, p as E, B as l, v as n, F as S, y as m, u as w, w as x, z as f, x as g } from "./index-Cha1SYev.mjs";
2
2
  import "@vueuse/core";
3
3
  export {
4
4
  i as ArticleCompareEditor,