refactoring

This commit is contained in:
Philipp Kühn
2020-11-20 23:44:23 +01:00
parent 527f75f5fd
commit c433428fba
3 changed files with 21 additions and 17 deletions

View File

@@ -14,7 +14,12 @@ import createStyleTag from './utils/createStyleTag'
import CommandManager from './CommandManager'
import ExtensionManager from './ExtensionManager'
import EventEmitter from './EventEmitter'
import { EditorOptions, EditorContent, CommandSpec } from './types'
import {
EditorOptions,
EditorContent,
CommandSpec,
EditorSelection,
} from './types'
import * as extensions from './extensions'
import style from './style'
@@ -39,7 +44,7 @@ export class Editor extends EventEmitter {
public view!: EditorView
public selection = { from: 0, to: 0 }
public selection: EditorSelection = { from: 0, to: 0 }
public isFocused = false