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 system. It is developed to power our online editing platform [Substance](http://substance.io).

14 lines (12 loc) 370 B
import { DocumentNode } from 'substance' export default class TestNode extends DocumentNode { define () { return { type: 'test-node', boolVal: { type: 'boolean', default: false }, stringVal: { type: 'string', default: '' }, arrayVal: { type: ['array', 'string'], default: [] }, objectVal: { type: 'object', default: {} } } } }