123456789101112131415161718192021222324252627282930313233343536 |
- // Copyright (c) Jupyter Development Team.
- // Distributed under the terms of the Modified BSD License.
- import { IEditorServices } from '@jupyterlab/codeeditor';
- import { CodeMirrorEditorFactory } from './factory';
- import { CodeMirrorMimeTypeService } from './mimetype';
- export * from './mode';
- export * from './editor';
- export * from './factory';
- export * from './mimetype';
- export * from './syntaxstatus';
- export * from './tokens';
- /**
- * The default editor services.
- */
- export const editorServices: IEditorServices = {
- factoryService: new CodeMirrorEditorFactory(),
- mimeTypeService: new CodeMirrorMimeTypeService()
- };
- /**
- * FIXME-TRANS: Maybe an option to be able to pass a translator to the factories?
- *
- export function getEditorServices(translator: ITranslator): IEditorServices {
- return {
- factoryService: new CodeMirrorEditorFactory({}, translator),
- mimeTypeService: new CodeMirrorMimeTypeService(translator)
- };
- }
- */
|