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

Blogs and Blogs admin require a different module to be overridden

    Details

      Description

      Hello,

      Referring to https://dev.liferay.com/en/develop/tutorials/-/knowledge_base/7-0/modifying-an-editors-configuration (and same doc for 7.0+), a recent investigation highlighted that a configuration like the one below:

      @Component(immediate = true, 
             property = \{
             "editor.name=ckeditor",
             "service.ranking:Integer=100" },
             service = EditorConfigContributor.class
      )
      

      Will not help to completely override Blogs and Blogs admin. This is because for Blogs, editorConfig.allowedContent corresponds to:

      "a[*](*); b code em h1 h2 h3 h4 h5 h6 hr i pre strong u; div(*); img[*](*)\{*}; li ol ul; p \{text-align}; table[border, cellpadding, cellspacing] \{width}; tbody td th[scope]; thead tr[scope];"
      

      In case of web content (or any other place using an editor), it is simply:

      editorConfig.allowedContent=true

      The documentation should mention anyhow that not only one EditorConfigContributor is used for all editors, or that Blogs require a separate module to be overridden.

       

        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