Legacy Knowledge Base
Published Jul. 2, 2025

Portlets with WYSIWYG Editor cannot publish large articles

Written By

Liferay Support

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

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

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

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

Information about products not created by Liferay is provided for informational purposes only and does not constitute Liferay Support recommendation nor endorsement. Liferay also does not assume any responsibility for any instructions herein or referenced regarding these products.

Portlets that use the WYSIWYG editor to publish content (e.g. Web Content, Blogs, Wikis, Message Boards) have a limit on the size of articles published. This is due to the default maxPostSizenbsplimitnbspwhich is specified in the server.xml of Tomcat (http://tomcat.apache.org/tomcat-7.0-doc/config/http.html). An article will not be published if it exceeds this setting.nbspTo overcome this issue, follow the steps provided in the below resolution.

Note: This workaround is limited to Tomcat and comparable products.

Resolution

  1. Navigate to the Tomcat ROOT folder -> conf -> server.xml
  2. Edit the property:
    Connector port="8080" protocol="HTTP/1.1"
    	connectionTimeout="20000"
    	redirectPort="8443" URIEncoding="UTF-8" />
    	
    with
    Connector port="8080" protocol="HTTP/1.1"
    	connectionTimeout="20000" maxPostSize="0"
    	redirectPort="8443" URIEncoding="UTF-8" />
    	
  3. Save the file.
  4. Start the Liferay Portal.
  5. Add the Wiki portlet to the page.
  6. Select "This page is empty. Edit it to add some text."
  7. Select HTML from the Format drop-down menu.
  8. Select Source from the tabs above the text box.
  9. Enter a large amount of HTML code (e.g. create a web page with more than 16,000 lines).
  10. Click Publish.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base