index.d.ts 638 B

12345678910111213141516171819202122
  1. /// <reference types="./types" />
  2. declare class WYSIWYG {
  3. range: Range;
  4. element: HTMLPreElement;
  5. popover: HTMLDivElement;
  6. selectPopover: HTMLDivElement;
  7. afterRenderTimeoutId: number;
  8. hlToolbarTimeoutId: number;
  9. preventInput: boolean;
  10. composingLock: boolean;
  11. commentIds: string[];
  12. private scrollListener;
  13. constructor(vditor: IVditor);
  14. getComments(vditor: IVditor, getData?: boolean): ICommentsData[];
  15. triggerRemoveComment(vditor: IVditor): void;
  16. showComment(): void;
  17. hideComment(): void;
  18. unbindListener(): void;
  19. private copy;
  20. private bindEvent;
  21. }
  22. export { WYSIWYG };