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).

16 lines (14 loc) 445 B
import DocumentNode from './DocumentNode' export default class AssetNode extends DocumentNode { define () { return { type: '@asset', // ATTENTION: internally this is used for a DAR assetId, not as file name. // During conversion it is mapped to the filename registered in the DAR. src: 'string', // TODO: can we really provide this? // it would be rather read-only mimetype: 'string' } } }