AEM 6.5 中触摸 UI 的富文本对话框
我想在 AEM 6.5 中创建富文本对话框,
我已添加 RTE 插件和 UI 设置,但它仍然无法正常工作。
请参阅富文本对话框结构的附图。
我们是否需要编写一些代码或类以便富文本对话框可以工作。 请帮忙。
I want to create Rich Text dialog in AEM 6.5
I have added the RTE plugins and UI settings but still it is not working.
Please see the attached image of the structure of rich text dialog.
Do we need to write some code or class so that rich text dialogs can work.
Please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
弄清楚您是否做错了什么的最佳方法是从
/libs/core/wcm/components/text/v1/text/cq:dialog/content/items/tabs/items/properties/ 复制富文本items/columns/items/column/items/text
到您的对话框并检查 RTE 是否出现。如果是,则将您之前创建的版本与此版本进行比较,找出问题所在。最好的方法始终是检查 OOTB 字段结构并将其与您的结构进行比较,以找出问题所在。
The best way to figure out if you have done anything wrong is to copy the richtext from
/libs/core/wcm/components/text/v1/text/cq:dialog/content/items/tabs/items/properties/items/columns/items/column/items/text
to your dialog and check if the RTE is appearing or not. If it is, then compare the one you previously created with this one and figure out what is going wrong.Always the best approach is to check the OOTB fields structure and compare it with your structure to figure out what is going wrong.
对话框中的富文本编辑器
直接使用 XML 配置对话框总是比在CRXDE。
首先,您可以查看 '文本组件'对话框,其对话框中有RTE。
查看 content.xml对话框的。希望您能得到更好的主意。
Rich Text Editor in Dialog
It is always better to configure dialogs directly with XML instead of doing it in CRXDE.
To start with you can look into the 'Text Component' dialog which has RTE in its dialog.
Look into the
<text>...</text>
part in the content.xml of the dialog. Hopefully, you will get a better idea.