首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在hmc中将富文本编辑器转换为普通文本编辑器

如何在hmc中将富文本编辑器转换为普通文本编辑器
EN

Stack Overflow用户
提问于 2016-05-24 14:26:44
回答 1查看 1.2K关注 0票数 0

我是SAP Hybris的新手。我有一个场景,我需要在hmc中将产品描述从富文本编辑器更改为普通文本编辑器。默认情况下,我们可以在hmc中看到description字段的富文本编辑器

EN

回答 1

Stack Overflow用户

发布于 2016-05-24 21:41:51

尝试替换

代码语言:javascript
复制
<section name="product.descriptions">
              <listlayout>
                 <attribute name="description">
                    <wysiwygeditor/>
                 </attribute>
                 <attribute name="unit"/>
              </listlayout>
           </section>

代码语言:javascript
复制
      <section name="product.descriptions" mode="replace">
              <listlayout>
                 <attribute name="description"/>
                 <attribute name="unit"/>
              </listlayout>
           </section>

在核心扩展hmc.xml中

只需删除<wysiwygeditor/>,也可以使用普通的<textareaeditor/>

例如: yourcoreextension -> hmc -> -> hmc.xml

将此配置放入->

代码语言:javascript
复制
<type name="Product" mode="append">
  <organizer>
    <editor mode="append"> 
      <tab name="tab.product.properties" position="1" mode="append">
        <section name="product.descriptions" mode="replace">
              <listlayout>
                 <attribute name="description"/>                                      
                 <attribute name="unit"/>
              </listlayout>
           </section>
      </tab>
     </editor>
  </organizer>
</type>  
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37405898

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档