【发布时间】:2021-09-30 04:51:34
【问题描述】:
Contenful 有自己的rich text format json 样式形式:
{
"nodeType": "document",
"data": {},
"content": [
{
"nodeType": "paragraph", // Can be paragraphs, images, lists, embedded entries
"data": {},
"content": [
{
"nodeType": "text",
"value": "This text is ",
"data": {},
"marks": []
},
{
"nodeType": "text",
"value": "important",
"data": {},
"marks": [
"type": "bold" // Can be bold, underline, italicss
]
}
]
}
]
}
除了内容之外,还有什么方法可以生成这种类型的富文本?
我喜欢使用其他富文本编辑器,例如 vue-quill-editor
但是它们生成 html 作为输出,这意味着我无法以有意义的方式将内容添加到内容数据库中。
对这方面的想法感兴趣。
【问题讨论】:
标签: richtextbox rich-text-editor contentful richtext