【问题标题】:AEM (6.3) RTE Component not showing image plugin in touch UIAEM (6.3) RTE 组件未在触摸 UI 中显示图像插件
【发布时间】:2018-12-11 03:15:10
【问题描述】:

我正在将 RTE 组件添加到 AEM 中的对话框中:

<richtext
        jcr:primaryType="nt:unstructured"
        sling:resourceType="cq/gui/components/authoring/dialog/richtext"
        fieldLabel="Richtext"
        name="./richtext"
        useFixedInlineToolbar="{Boolean}true">
    <rtePlugins jcr:primaryType="nt:unstructured">
        <format
                jcr:primaryType="nt:unstructured"
                features="*"/>
        <justify
                jcr:primaryType="nt:unstructured"
                features="*"/>
        <lists
                jcr:primaryType="nt:unstructured"
                features="*"/>
        <paraformat
                jcr:primaryType="nt:unstructured"
                features="*"/>
        <links
                jcr:primaryType="nt:unstructured"
                features="*"/>
        <image
                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,#justify,#lists,subsuperscript#subscript,subsuperscript#superscript,links#modifylink,links#unlink,links#anchor,#image,findreplace#find,findreplace#replace,spellcheck#checktext,misctools#specialchars,misctools#sourceedit,#styles,#paraformat,table#table]">
                <popovers jcr:primaryType="nt:unstructured">
                    <justify
                            jcr:primaryType="nt:unstructured"
                            items="[justify#justifyleft,justify#justifycenter,justify#justifyright]"
                            ref="justify"/>
                    <lists
                            jcr:primaryType="nt:unstructured"
                            items="[lists#unordered,lists#ordered,lists#outdent,lists#indent]"
                            ref="lists"/>
                    <paraformat
                            jcr:primaryType="nt:unstructured"
                            items="paraformat:getFormats:paraformat-pulldown"
                            ref="paraformat"/>
                    <styles
                            jcr:primaryType="nt:unstructured"
                            items="styles:getStyles:styles-pulldown"
                            ref="styles"/>
                </popovers>
            </inline>
        </cui>
    </uiSettings>
</richtext>

但是在创作模式下检查对话框时,图像插件不存在:

我想知道是否仅在对话框中添加插件就足够了,或者 AEM (6.3) 中不支持 RTE 组件中的图像。

提前致谢。

【问题讨论】:

  • 考虑到图像插件仅提供基本图像支持(从内容或内容查找器中拖动),您不必依赖它在 RTE 中创作图像。使用您已经在使用的useFixedInlineToolbar 属性,富文本资源类型允许您将图像从内容查找器拖放到对话框中。

标签: richtextbox aem aem-6


【解决方案1】:

您还需要在工具栏属性中将#image 更改为 image#imageProps 以使其显示在 RTE 工具栏中。

<inline
 jcr:primaryType="nt:unstructured"
 toolbar="[format#bold,format#italic,format#underline,#justify,#lists,subsuperscript#subscript,subsuperscript#superscript,links#modifylink,links#unlink,links#anchor,image#imageProps,findreplace#find,findreplace#replace,spellcheck#checktext,misctools#specialchars,misctools#sourceedit,#styles,#paraformat,table#table]">

【讨论】:

  • 井现在出现了,但是被禁用了
  • 点击 RTE 中的内嵌图片后是否会立即启用?
  • 当我从内容查找器拖放图像时,它似乎变得可用,现在可以使用了。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-07-15
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多