如何解决使用 Sanity 的富文本编辑器单击图像时添加外部 URL
我试图让使用 sanity.studio 中的富文本编辑器(没有编码知识)的人们能够在他们上传的图像中添加外部链接。因此,它可以在他们添加的帖子中点击,并将用户带到另一个页面。现在他们只能添加一些 ALT 文本和编辑图片。这是blockContent.js中关于图片的代码:
{
type: 'image',fields: [
{
type: 'text',name: 'alt',title: 'Alternative text',description: `Some of your visitors cannot see images,be they blind,color-blind,low-sighted;
alternative text is of great help for those
people that can rely on it to have a good idea of
what\'s on your page.`,options: {
isHighlighted: true,hotspot: true,},}
],}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。