TextEditor.js 788 B

1234567891011121314151617
  1. export class TextEditorFactory{createEditor(options){}}
  2. export class TextEditor extends Common.EventTarget{widget(){}
  3. fullRange(){}
  4. selection(){}
  5. setSelection(selection){}
  6. text(textRange){}
  7. textWithCurrentSuggestion(){}
  8. setText(text){}
  9. line(lineNumber){}
  10. newlineAndIndent(){}
  11. addKeyDownHandler(handler){}
  12. configureAutocomplete(config){}
  13. clearAutocomplete(){}
  14. visualCoordinates(lineNumber,columnNumber){}
  15. tokenAtTextPosition(lineNumber,columnNumber){}
  16. setPlaceholder(placeholder){}}
  17. export const Events={CursorChanged:Symbol('CursorChanged'),TextChanged:Symbol('TextChanged'),SuggestionChanged:Symbol('SuggestionChanged')};self.UI=self.UI||{};UI=UI||{};UI.TextEditor=TextEditor;UI.TextEditorFactory=TextEditorFactory;UI.TextEditor.Events=Events;UI.TextEditor.Options;UI.AutocompleteConfig;