Class: Fragments:Embed

Fragments:Embed

new Fragments:Embed()

Embodies an embed fragment
Source:

Members

value

the JSON object exactly as is returned in the "data" field of the JSON responses (see API documentation: https://developers.prismic.io/documentation/UjBe8bGIJ3EKtgBZ/api-documentation#json-responses)
Source:

Methods

asHtml() → {string}

Turns the fragment into a useable HTML version of it. If the native HTML code doesn't suit your design, this function is meant to be overriden.
Source:
Returns:
- basic HTML code for the fragment
Type
string

asText() → {string}

Turns the fragment into a useable text version of it.
Source:
Returns:
- basic text version of the fragment
Type
string