16 lines
371 B
TypeScript
16 lines
371 B
TypeScript
import { EditorView } from 'codemirror';
|
|
declare let editor: EditorView;
|
|
/**
|
|
* 创建单例
|
|
* @param el
|
|
* @returns
|
|
*/
|
|
declare const createEditorInstance: (el?: HTMLDivElement) => EditorView;
|
|
/**
|
|
* 每次都创建新的实例
|
|
* @param el
|
|
* @returns
|
|
*/
|
|
export declare const createEditor: (el: HTMLDivElement) => EditorView;
|
|
export { editor, createEditorInstance };
|