addToStory(story, itemOrString, insertionPointOrMode)
Adds a page item or a string to an existing story. You can control the position of the insert via the last parameter. It accepts either an insertion point or one the following constants: AT_BEGINNING
and AT_END
.
Type: function
Parameter(s):
- story {Story}:
The story.
- itemOrString {PageItem | String}:
Either a page item or a string.
- insertionPointOrMode {InsertionPoint | String}:
Insertion point object or one the following constants:
AT_BEGINNING
andAT_END
.