Options
All
  • Public
  • Public/Protected
  • All
Menu

prismic-richtext

Index

Type aliases

NodeElement

Serializer

Serializer: function

Type declaration

    • (type: string, element: NodeElement, text: string | null, children: T[], index: number): T
    • Parameters

      • type: string
      • element: NodeElement
      • text: string | null
      • children: T[]
      • index: number

      Returns T

Functions

asText

  • asText(richtext: RichTextBlock[], joinString: string | null | undefined): string

buildTree

buildTreeAndFill

electNode

fill

fromRichText

groupNodes

groupWith

partitionGroup

processTextBlock

serializeNode

sliceNode

sortByPriorities

uuid

  • uuid(): string

Object literals

Const NODE_TYPES

NODE_TYPES: object

em

em: string = "em"

embed

embed: string = "embed"

heading1

heading1: string = "heading1"

heading2

heading2: string = "heading2"

heading3

heading3: string = "heading3"

heading4

heading4: string = "heading4"

heading5

heading5: string = "heading5"

heading6

heading6: string = "heading6"

hyperlink

hyperlink: string = "hyperlink"

image

image: string = "image"

label

label: string = "label"

list

list: string = "group-list-item"

listItem

listItem: string = "list-item"

oList

oList: string = "group-o-list-item"

oListItem

oListItem: string = "o-list-item"

paragraph

paragraph: string = "paragraph"

preformatted

preformatted: string = "preformatted"

span

span: string = "span"

strong

strong: string = "strong"

Const PRIORITIES

PRIORITIES: object

__computed

__computed: number = 7

Generated using TypeDoc