如何使RTE超链接“在新窗中打开”;默认情况下,adobe cq5

How to make RTE hyperlinks "Open in new window" by default in adobe cq5?

本文关键字:默认 情况下 cq5 adobe RTE 何使 超链接 新窗中      更新时间:2023-09-26

我试图修改RTE下的LinkDialog.js,默认勾选复选框"在新窗中打开"。根据day API,它应该只是将值"checked":true添加到默认值,但这不起作用。它确实接受我的其他值更改,例如名称,所以现在编辑正在通过。

下面是我修改的代码:

{
                "itemId": "targetBlank",
                "name": "targetBlank",
                "xtype": "checkbox",
                "boxLabel": CQ.I18n.getMessage("Open in new window"),
                "checked": true,
                "value": "targetBlank"
            }

试试这些道具:

checked="{Boolean}true"
defaultValue="true"