AEM (6.3) RTE компонент не показывает плагин изображения в сенсорном интерфейсе - PullRequest
0 голосов
/ 10 декабря 2018

Я добавляю компонент 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>

Но при проверке диалога в авторском режиме подключаемый модуль изображения отсутствует: enter image description here

Мне интересно, достаточно ли просто добавить вставку в диалоговом окне или нет поддержки в AEM (6.3) для изображений в компоненте RTE.

Заранее спасибо.

1 Ответ

0 голосов
/ 10 декабря 2018

Вам также нужно изменить #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]">
...