editor-methods.ts 641 B

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