cancel
Showing results for 
Search instead for 
Did you mean: 

Change simple text input to WYSIWYG editor Backoffice

0 Kudos

Hi!

I need change this input on Backoffice:

To this:

In my Items.xml I have:

<itemtype code="TextMessageComponent" extends="SimpleCMSComponent" 
jaloclass="es.fs.fsstorefrontaddon.jalo.TextMessageComponent">
</itemtype>
<itemtype code="Category" autocreate="false" generate="false">
    <attributes>        
       <attribute qualifier="textMessage" type="localized:java.lang.String">
            <persistence type="property">
                <columntype>
                    <value>HYBRIS.LONG_STRING</value>
                </columntype>
            </persistence>
        </attribute>
    </attributes>
</itemtype>

Any suggestion? Thanks for all!

Accepted Solutions (0)

Answers (1)

Answers (1)

adiputera
Active Participant
0 Kudos

You can do that by creating editor area config in backoffice-config.xml

<context merge-by="type" parent="GenericItem" type="MyItemType" component="editor-area" module="mycustombackofficeextension">
<editorArea:editorArea>
<editorArea:tab name="hmc.properties">
<editorArea:section name="hmc.description">
<editorArea:attribute qualifier="myattribute" editor="com.hybris.cockpitng.editor.wysiwyg">
<editorArea:editor-parameter>
<editorArea:name>base64Encoded</editorArea:name>
<editorArea:value>true</editorArea:value>
</editorArea:editor-parameter>
</editorArea:attribute>
<!-- if it's localized, use below config -->
<editorArea:attribute qualifier="myattribute" editor="com.hybris.cockpitng.editor.localized(com.hybris.cockpitng.editor.wysiwyg)">
<editorArea:editor-parameter>
<editorArea:name>base64Encoded</editorArea:name>
<editorArea:value>true</editorArea:value>
</editorArea:editor-parameter>
</editorArea:attribute>
</editorArea:section>
</editorArea:tab>
</editorArea:editorArea>
</context>