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).
8 lines (7 loc) • 512 B
JavaScript
export const INCREMENT_VERSION = Symbol('incrementVersion')
export const ADD_NODE = Symbol('addNode')
export const ADD_PROPERTY = Symbol('addProperty')
export const ADD_CHILD_TYPE = Symbol('addChildType')
export const BUILT_INS = new Set(['@node', '@text', '@annotation', '@inlinenode', '@asset'])
export const ATTRIBUTE_PROPERTY_TYPES = new Set(['integer', 'number', 'boolean', 'string', 'string-array', 'one', 'many'])
export const CHILDREN_PROPERTY_TYPES = new Set(['child', 'children', 'text', 'container'])