15.16.13 • Published 2 months ago
@contentful/contentful-slatejs-adapter v15.16.13
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.16.13
2 months ago
15.16.12
3 months ago
15.16.11
3 months ago
15.16.10
3 months ago
15.16.9
3 months ago
15.16.7
9 months ago
15.16.8
8 months ago
15.16.5
12 months ago
15.16.6
11 months ago
15.16.3
1 year ago
15.16.4
1 year ago
15.16.2
1 year ago
15.16.0
1 year ago
15.15.1
1 year ago
15.13.1
2 years ago
15.12.1
2 years ago
15.12.0
2 years ago
15.9.0
2 years ago
15.9.1
2 years ago
15.11.0
2 years ago
15.10.1
2 years ago
15.11.1
2 years ago
15.10.0
2 years ago
15.8.0
2 years ago
15.6.0
2 years ago
15.5.0
3 years ago
15.3.5
3 years ago
15.3.2
3 years ago
15.3.1
3 years ago
15.3.3
3 years ago
15.3.0
3 years ago
15.1.0
3 years ago
15.0.0
3 years ago
14.2.0
3 years ago
14.1.2
3 years ago
14.1.1
4 years ago
14.1.0
4 years ago
5.0.0
6 years ago
3.3.0
6 years ago
3.2.0
6 years ago
3.1.0
6 years ago
3.0.0
6 years ago
2.1.0
6 years ago
2.0.0
6 years ago
1.2.0
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago