Uploaded image for project: 'PUBLIC - Liferay Documentation'
  1. PUBLIC - Liferay Documentation
  2. LRDOCS-6425

Update "Modifying an Editor's Configuration" with note for handling "editor.config.key=contentEditor" property

    Details

      Description

      Hello DOCS team,

      I am referring to these two articles/sections/paragraphs:

      https://dev.liferay.com/en/develop/tutorials/-/knowledge_base/7-0/modifying-an-editors-configuration#extending-the-editors-configuration (point 3.)

      https://dev.liferay.com/en/develop/tutorials/-/knowledge_base/7-1/modifying-an-editors-configuration#updating-the-editors-configuration (point 6.)

      There should a part explaining that, for targeting any editors or just e.g. the Web Content editor, the property "editor.config.key=contentEditor" is not necessary.

      To give an example, this one won't help to override Web Content:

      @Component(
      property = {
      "editor.config.key=contentEditor", "editor.name=ckeditor",
      "javax.portlet.name=com_liferay_journal_web_portlet_JournalPortlet",
      "service.ranking:Integer=100"
      }
      

      This one will work instead:

      @Component(
      property = {"editor.name=ckeditor",
      "javax.portlet.name=com_liferay_journal_web_portlet_JournalPortlet",
      "service.ranking:Integer=100"
      }
      

      The source where this could be found: https://github.com/liferay/liferay-portal/blob/master/portal-kernel/src/com/liferay/portal/kernel/editor/configuration/EditorConfigContributor.java#L51-L55

      Thanks.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                7.0.x
                7.1.x