Portlets with WYSIWYG Editor cannot publish large articles

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

这篇文章有帮助吗?
0 人中有 0 人觉得有帮助