15.18.11 • Published 9 months ago

@contentful/contentful-slatejs-adapter v15.18.11

Weekly downloads
3,043
License
MIT
Repository
github
Last release
9 months ago

contentful-slatejs-adapter

This library provides an adapter to convert Slate's document structure to Contentful's rich text document structure and vice-versa.

Installation

Using npm:

npm install @contentful/contentful-slatejs-adapter

Using yarn:

yarn add @contentful/contentful-slatejs-adapter

Usage

TBA

{
  "category": "document",
  "content": [
    {
      "category": "block",
      "type": "header-one",
      "content": [
        {
          "category": "text",
          "type": "text",
          "value": "This is a headline!",
          "marks": [
            {
              "object": "mark",
              "type": "bold",
              "data": {}
            }
          ]
        }
      ]
    },
    {
      "category": "block",
      "type": "paragraph",
      "content": [
        {
          "category": "text",
          "type": "text",
          "value": "",
          "marks": [
            {
              "object": "mark",
              "type": "bold",
              "data": {}
            }
          ]
        }
      ]
    },
    {
      "category": "block",
      "type": "paragraph",
      "content": [
        {
          "category": "text",
          "type": "text",
          "value": "and this is a bold text",
          "marks": [
            {
              "object": "mark",
              "type": "bold",
              "data": {}
            }
          ]
        },
        {
          "category": "text",
          "type": "text",
          "value": " but now i am not bold anymore. ",
          "marks": []
        },
        {
          "category": "text",
          "type": "text",
          "value": "However, ",
          "marks": [
            {
              "object": "mark",
              "type": "italic",
              "data": {}
            }
          ]
        },
        {
          "category": "text",
          "type": "text",
          "value": " i am now ",
          "marks": []
        },
        {
          "category": "text",
          "type": "text",
          "value": "underlined with shit. ",
          "marks": [
            {
              "object": "mark",
              "type": "underlined",
              "data": {}
            }
          ]
        }
      ]
    }
  ]
}
15.18.11

9 months ago

15.18.10

10 months ago

15.17.4

12 months ago

15.17.5

12 months ago

15.17.2

1 year ago

15.17.3

1 year ago

15.17.0

1 year ago

15.17.1

1 year ago

15.16.14

1 year ago

15.18.9

11 months ago

15.18.7

11 months ago

15.18.8

11 months ago

15.18.5

11 months ago

15.18.6

11 months ago

15.18.3

11 months ago

15.18.4

11 months ago

15.18.1

12 months ago

15.18.2

12 months ago

15.18.0

12 months ago

15.16.13

1 year ago

15.16.12

1 year ago

15.16.11

1 year ago

15.16.10

1 year ago

15.16.9

1 year ago

15.16.7

2 years ago

15.16.8

2 years ago

15.16.5

2 years ago

15.16.6

2 years ago

15.16.3

2 years ago

15.16.4

2 years ago

15.16.2

3 years ago

15.16.0

3 years ago

15.15.1

3 years ago

15.13.1

3 years ago

15.12.1

3 years ago

15.12.0

3 years ago

15.9.0

4 years ago

15.9.1

4 years ago

15.11.0

3 years ago

15.10.1

3 years ago

15.11.1

3 years ago

15.10.0

4 years ago

15.8.0

4 years ago

15.6.0

4 years ago

15.5.0

4 years ago

15.3.5

4 years ago

15.3.2

4 years ago

15.3.1

4 years ago

15.3.3

4 years ago

15.3.0

4 years ago

15.1.0

4 years ago

15.0.0

4 years ago

14.2.0

4 years ago

14.1.2

5 years ago

14.1.1

5 years ago

14.1.0

5 years ago

5.0.0

7 years ago

3.3.0

7 years ago

3.2.0

7 years ago

3.1.0

7 years ago

3.0.0

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago