gpt4 book ai didi

tridion - SDL Tridion 2011 : Rich Text Editor Configuration to produce specific markup

转载 作者:行者123 更新时间:2023-12-04 14:47:15 26 4
gpt4 key购买 nike

我需要在 SDL Tridion 富文本编辑器中为图像生成如下标记:

<div class="imagemasksmall">
<img src="tcm:2-123-16" alt="My amazing image" />
</div>

我最初的想法是使用 FormatAreaStyles.css 文件添加一个类,如 div.imagemasksmall { } ,但是这似乎只有在我在标记中添加 div 时才可用。

有没有一种方法可以让编辑器生成上述标记而无需手动编写代码?

最佳答案

如果您只需要一个带有“imagemasksmall”类和一个图像的 DIV,您可以分 3 个步骤完成(因为您已经将样式添加到 FormatAreaStyles.css):

  • 插入图片
  • 将部分类型下拉列表更改为“通用容器(div)”
  • 将样式下拉列表更改为“imagemasksmall”

  • 如果您想减少所需的手动步骤数量,您可能必须编写一个扩展程序来为用户执行这些步骤。

    关于tridion - SDL Tridion 2011 : Rich Text Editor Configuration to produce specific markup,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14212092/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com