【发布时间】:2018-06-13 18:00:09
【问题描述】:
Rich Text Editor 中是否有允许您编辑文本颜色的属性?
这是我当前的对话框:
<lifeSavings
jcr:primaryType="nt:unstructured"
value="Lifetime Savings"
sling:resourceType="cq/gui/components/authoring/dialog/richtext"
fieldDescription="Enter Lifetime Savings title"
fieldLabel="Lifetime Savings title"
name="./lifesavings"
textIsRich="true"
useFixedInlineToolbar="{Boolean}true">
<rtePlugins jcr:primaryType="nt:unstructured">
<format
jcr:primaryType="nt:unstructured"
features="*"/>
</rtePlugins>
<uiSettings jcr:primaryType="nt:unstructured">
<cui jcr:primaryType="nt:unstructured">
<inline
jcr:primaryType="nt:unstructured"
toolbar="[format#bold,format#italic,format#underline]">
</inline>
</cui>
</uiSettings>
</lifeSavings>
【问题讨论】:
-
没有 OOTB 插件可用于为文本 AFAIK 添加颜色。但是,您可以利用 Styles plugin 定义类名并通过 CSS 为这些类添加颜色,或者您可以使用详细的自定义实现 in this blog
标签: eclipse user-interface adobe aem rte