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).
15 lines (13 loc) • 417 B
JavaScript
import { DocumentSchema } from 'substance'
import getTestConfig from './getTestConfig'
import TestArticle from './TestArticle'
export default function getTestSchema () {
let config = getTestConfig()
let schema = new DocumentSchema({
DocumentClass: TestArticle,
nodes: config.getNodes(),
// TODO: try to get rid of this by using property schema
defaultTextType: 'paragraph'
})
return schema
}