一个人如何使用;内容“;KeystoneJS中的字段类型?
如何在KeystoneJS中使用?我在index.js中添加了以下内容,如下链接中给出的示例所示:一个人如何使用;内容“;KeystoneJS中的字段类型?,keystonejs,Keystonejs,如何在KeystoneJS中使用?我在index.js中添加了以下内容,如下链接中给出的示例所示: keystone.createList('Todo', { schemaDoc: 'A list of things which need to be done', fields: { name: {type: Text, schemaDoc: 'This is the thing you need to do'}, blip: {type: Tex
keystone.createList('Todo', {
schemaDoc: 'A list of things which need to be done',
fields: {
name: {type: Text, schemaDoc: 'This is the thing you need to do'},
blip: {type: Text, schemaDoc: 'This is another thing'},
status: {type: Select, options: 'pending, processed'},
rating: { type: Stars, starCount: 5 }, body: {
type: Content,
blocks: [
Content.blocks.blockquote,
Content.blocks.image,
Content.blocks.link,
Content.blocks.orderedList,
Content.blocks.unorderedList,
Content.blocks.heading,
// CloudinaryImage.blocks.image,
],
},
},
但当我走到前端并点击“+”按钮时,它只为我提供了插入图像的选项(见下面的屏幕截图)
我应该看到什么?如果我应该看到更多,我应该做什么?我没有看到任何关于“blockquote”、“link”、“orderedList”等的内容
这一切都被所见即所得编辑器取代了吗?或者他们做不同的事情?
您必须编写一些文本,然后选择该文本作为文本格式项目 以下是所有选项打开时的外观: 这就是我删除额外格式选项(裸内容字段)时的外观