2020-08-27 17:39发布
点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)我们需要删除在CMS Cockp... 显示全部
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
我们需要删除在CMS Cockpit的WYSIWYG编辑器中附加的"
"标记。 "
"标签使通过CSS样式化的UI变形。 由于内联样式具有最高的首选项,因此不必要添加"
"标签会破坏UI。 请提出如何在CMS座舱中禁用此功能的建议。
你好玛娜斯, 另一种方法是在自定义扩展中扩展WysiwygUIEditor和CockpitFCKEditor,并在myextension-spring-editors.xml中使用自定义WysiwygUIEditor实现为Alias" EditorFactory"注册新的bean。 您可以参考cmscockpit-spring-editors.xml中的EditorFactory bean定义。 请在下面找到CustomWYSIWYGUIEditor和CustomFCKEditor的代码段。
公共类CustomWYSIWYGUIEditor扩展WysiwygUIEditor { /* *(非Javadoc) * * @see de.hybris.platform.cockpit.model.editor.WysiwygUIEditor#createCockpitFCKEditor(java.util.Map) */ @Override 受保护的CockpitFCKEditor createCockpitFCKEditor(最终Map& lt; String ,?扩展了Object& gt editorParameters) { 返回新的CustomFCKEditor(UISessionUtils.getCurrentSession()。getLanguageIso(),getSpellcheckerPath(), CockpitFCKEditor.Skin.SILVER); } }
CustomCKEditor覆盖applySettings以赋予所需的属性。
公共类CustomFCKEditor扩展了CockpitFCKEditor { /** * @param langIso * @papellCheckerScript * @帕金 */ 公共CustomFCKEditor(最终字符串langIso,最终字符串spellCheckerScript,最终皮肤) { 超级(langIso,spellCheckerScript,皮肤); } /* *(非Javadoc) * * @see de.hybris.platform.cockpit.components.CockpitFCKEditor#applySettings() */ @Override 公共无效applySettings() { addEditorAttribute(" FCKConfig.EnterMode","'br'"); super.applySettings(); } }
希望这会有所帮助。 最好的问候,Shwetha
最多设置5个标签!
你好玛娜斯, 另一种方法是在自定义扩展中扩展WysiwygUIEditor和CockpitFCKEditor,并在myextension-spring-editors.xml中使用自定义WysiwygUIEditor实现为Alias" EditorFactory"注册新的bean。 您可以参考cmscockpit-spring-editors.xml中的EditorFactory bean定义。 请在下面找到CustomWYSIWYGUIEditor和CustomFCKEditor的代码段。
CustomCKEditor覆盖applySettings以赋予所需的属性。
希望这会有所帮助。 最好的问候,Shwetha
一周热门 更多>