Skip to content

Commit

Permalink
Alinea content update
Browse files Browse the repository at this point in the history
update
Co-authored-by: Brecht Cloetens <brecht@codeurs.be>
  • Loading branch information
alinea-cloud[bot] authored and cloetensbrecht committed Jun 18, 2024
1 parent 0698483 commit ee00b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/content/pages/docs/content/editing-content.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
{
"_type": "CodeBlock",
"_id": "2c4t1IBcmwpjaS3YqNaJQxRpWss",
"code": "const richTextField = richText('Item body text');\nconst listField = list('My list field', {\n schema: {\n Text: type('Text', {\n title: text('Item title'),\n text: richText,\n })\n }\n})\nconst rowText = Edit.richText(richTextField)\n .addHtml(`\n <h1>Main heading</h1>\n <p>A rich text value parsed from HTML.</p>\n `)\n .value()\nconst listValue = Edit.list(listField)\n .add('Text', {\n title: 'The row title',\n text: rowText,\n })\n .value()\nconst update = Edit(entryId, TypeWithList).set({\n list: listValue\n})",
"code": "const richTextField = richText('Item body text');\nconst listField = list('My list field', {\n schema: {\n Text: type('Text', {\n title: text('Item title'),\n text: richText,\n })\n }\n})\nconst rowText = Edit.richText(richTextField)\n .addHtml(`\n <h1>Main heading</h1>\n <p>A rich text value parsed from HTML.</p>\n `)\n .value()\nconst listValue = Edit.list(listField)\n .add('Text', {\n title: 'The row title',\n text: rowText,\n })\n .value()\nconst update = Edit.update(entryId, TypeWithList).set({\n list: listValue\n})",
"fileName": "",
"language": ""
},
Expand Down

0 comments on commit ee00b9e

Please sign in to comment.