Text part loader
: shell
: core-parts
: text-part-loader
: /modules/core/parts/services/text-part-loader.js
: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/parts/services/text-part-loader.js
TextPartLoader
The text part loader transforms all flavors of text to HTML.
TextPartLoader.load(context, done)
Prepares the HTML corresponding to a text part.
Kind: static method of TextPartLoader
| Param | Type | Description |
|---|---|---|
| context | object |
The context object. |
| context.part | object |
The text part to handle. |
| context.partName | string |
The name of the part. |
| context.partType | string |
The type name of the part. |
| context.item | object |
A reference to the content item. |
| context.itemType | object |
The type definition for the content item. |
| context.scope | object |
The scope. |
| done | function |
The callback. |