Legacy Knowledge Base
Published Jun. 30, 2025

Cannot change the HTML WYSIWYG editor in webcontent or document types

Written By

Jorge Diaz

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

In DXP 7.4, we want to change the HTML WYSIWYG editor in web content and documents and media types from CKEditor to AlloyEditor.

When we try to change it using the following portal-ext.properties property, the editor is not changed:

editor.wysiwyg.portal-impl.portlet.ddm.text_html.ftl=alloyeditor
My questions:
  • Is it possible to change the editor in DXP 7.4?
  • If it is not possible to change it, can we modify the default editor behavior?

Environment

  • Liferay DXP 7.4

Resolution

It is not possible to change the editor in DXP 7.4

In DXP 7.4 version, a reimplementation of the "web content" and documents and media "document types" has been done, in both cases aligning the editor with the structure editor used for Forms functionality.

As part of this rewrite, the new interface no longer makes use of editor.wysiwyg.portal-impl.portlet.ddm.text_html.ftl property.

The editor is generated using the form field named "rich_text" instead. This field is implemented in the following points:

As you can see in these files the ckeditor_classic is used directly and the component is not intended to be able to change the editor.

So it is not possible to change it from the configuration settings.

If it were completely necessary to change the editor, it would be necessary to create a custom form field that replaces the implementation of the "rich_text" that comes as standard.

It is possible to change the editor's behavior

It is possible to customize the ckeditor_classic that brings the form field "rich_text" by implementing an EditorConfigContributor .

This class can modify the configuration with which the CKEditor is instantiated, so it would be possible to add or remove options to it.

There is documentation about how to create such EditorConfigContributor but unfortunately, this documentation is for DXP 7.2, so it may be necessary to adapt it:

You can also see examples of EditorConfigContributor in the Liferay code itself, for example:

In any case, the implementation of an EditorConfigContributor, being customization of the product, would be out of the scope of the support service.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base