editor-methods.ts 599 B

1234567891011121314151617
  1. export interface IEditorMethods {
  2. forceToFocus: () => void,
  3. setValue: (newValue: string) => void,
  4. setGfmMode: (bool: boolean) => void,
  5. setCaretLine: (line: number) => void,
  6. setScrollTopByLine: (line: number) => void,
  7. getStrFromBol(): void,
  8. getStrToEol: () => void,
  9. getStrFromBolToSelectedUpperPos: () => void,
  10. replaceBolToCurrentPos: (text: string) => void,
  11. replaceLine: (text: string) => void,
  12. insertText: (text: string) => void,
  13. insertLinebreak: () => void,
  14. dispatchSave: () => void,
  15. dispatchPasteFiles: (event: Event) => void,
  16. getNavbarItems: () => JSX.Element[],
  17. }