Edit this topic

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


The text part loader parses date strings into real date objects.

Kind: global variable

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.