【问题标题】:Special char plugin in CQ's rich text editorCQ富文本编辑器中的特殊char插件
【发布时间】:2015-10-15 10:00:37
【问题描述】:

我用特殊的 char 插件修改了 CQ 的富文本编辑器。但问题是,这也包括 html 源代码编辑插件。我不想将它包含在我的富文本编辑器中。有什么方法可以包含特殊字符但不能包含 html 源代码编辑。基本上我不想要 RTE 中的 html 编辑选项。

【问题讨论】:

    标签: aem rich-text-editor


    【解决方案1】:

    specialchars 功能通过misctools 插件提供,该插件还包含sourceedit 功能。

    为了激活插件的特定功能,features 属性必须是 String[],其值如下所示。

    "rtePlugins": {
        "jcr:primaryType": "nt:unstructured",
        "misctools": {
            "jcr:primaryType": "nt:unstructured",
            "features": ["sourceedit"]
        }
    }
    

    如果您的features 属性是String 类型并且值为*,那么它将包含插件的所有功能。可能这就是为什么你会得到sourceeditspecialchars

    Configuring the Rich Text Editor 可能会帮助您更多地了解在 AEM 中使用富文本编辑器。另请参阅API documentation for the MiscToolsPlugin

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-06-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多