UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

18 lines (13 loc) 503 B
import { ContentMatch, Fragment, Mark, MarkType, NodeType, ResolvedPos, Schema } from './'; export class ReplaceError extends Error {} export class Slice { constructor(content: Fragment, openStart: number, openEnd: number); content: Fragment; openStart: number; openEnd: number; size: number; toJSON(): { [key: string]: any } | null; static fromJSON(schema: Schema<any, any>, json?: { [key: string]: any }): Slice; static maxOpen(fragment: Fragment): Slice; static empty: Slice; }