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.

12 lines (10 loc) 267 B
import TestArticle from './TestArticle' import getTestConfig from './getTestConfig' export default function createTestArticle(seedFn) { let config = getTestConfig() var doc = new TestArticle(config.getSchema()) if (seedFn) { seedFn(doc) } return doc }