UNPKG

substance

Version:

Substance is a JavaScript library for web-based content editing. It provides building blocks for realizing custom text editors and web-based publishing systems.

15 lines (11 loc) 266 B
import { InlineNode } from '../../model' class InlineWrapper extends InlineNode { getWrappedNode() { return this.getDocument().get(this.wrappedNode) } } InlineWrapper.schema = { type: 'inline-wrapper', wrappedNode: 'id' } export default InlineWrapper