CQ rich text editor allows you to select bold, italic, and underline styles plus bullet and numbered lists

I have a rich text field editor. I need to activate functions (bold, italics and underline styles, plus only bullets and numbered lists).

Here is the xml of my widget:

<richtextfield
     jcr:primaryType="cq:Widget"
     fieldLabel="this is rich text field"
     name="./richtextfield"
     xtype="richtext">
     <rtePlugins jcr:primaryType="nt:unstructured">
           <subsuperscript
           jcr:primaryType="nt:unstructured"
           features="*"/>
     </rtePlugins>
 </richtextfield>

as you can see, I have all the features included here, but I don’t need it, because I just need bold, italic and underlined styles, plus just bullet lists and numbered lists.

any suggestions? Thanks

+1
source share
1 answer

. : http://dev.day.com/docs/en/cq/current/administering/configuring_rich_text_editor.html

RTE, :

<text
    jcr:primaryType="cq:Widget"
    externalStyleSheets="[/etc/designs/rtg/clientlibs/author/style/source/rte.css]"
    hideLabel="{Boolean}true"
    name="./text"
    xtype="richtext">
    <rtePlugins jcr:primaryType="nt:unstructured">
        <format
            jcr:primaryType="nt:unstructured"
            features="[bold,italic]"/>
        <justify
            jcr:primaryType="nt:unstructured"
            features=""/>
        <lists
            jcr:primaryType="nt:unstructured"
            features="[ordered,unordered]"/>
        <styles
            jcr:primaryType="nt:unstructured"
            features="*">
            <styles jcr:primaryType="cq:WidgetCollection">
                <f125
                    jcr:primaryType="nt:unstructured"
                    cssName="f125"
                    text="Font Size 125% (15px)"/>
                <f150
                    jcr:primaryType="nt:unstructured"
                    cssName="f150"
                    text="Font Size 150% (18px)"/>
            </styles>
        </styles>
    </rtePlugins>
</text>
+4

Source: https://habr.com/ru/post/1620319/


All Articles