使用了自带的editor组件,看到文档上写
于是就存储了delta格式的文本。但是复显的时候发现rich-text好像不支持,数据格式是这样的
有谁知道吗?还是我漏看了文档?还是存的时候还是需要html字符串?
只支持 html的字符串 或节点列表
html字符串就不用多说了
节点列表的格式如下
[{ name: 'div', attrs: { class: 'div_class', style: 'line-height: 60px; color: red;' }, children: [{ type: 'text', text: 'You never know what you're gonna get.' }] }]