Author: ghjboss
Date: 2010-03-05 11:56:23 -0500 (Fri, 05 Mar 2010)
New Revision: 13901
Modified:
branches/Enterprise_Portal_Platform_4_3_GA_CP03_JBEPP-180/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/edit.jsp
Log:
fix for JBEPP-180.
Modified:
branches/Enterprise_Portal_Platform_4_3_GA_CP03_JBEPP-180/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/edit.jsp
===================================================================
---
branches/Enterprise_Portal_Platform_4_3_GA_CP03_JBEPP-180/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/edit.jsp 2010-03-05
16:10:30 UTC (rev 13900)
+++
branches/Enterprise_Portal_Platform_4_3_GA_CP03_JBEPP-180/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/edit.jsp 2010-03-05
16:56:23 UTC (rev 13901)
@@ -1,6 +1,8 @@
<%@ page import="org.jboss.portal.core.cms.ui.admin.CMSAdminConstants"
%>
<%@ page import="org.jboss.portal.common.text.EntityEncoder" %>
<%@ page import="java.util.Locale" %>
+<%@ page import="java.util.regex.Matcher" %>
+<%@ page import="java.util.regex.Pattern" %>
<%@ page language="java"
extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib
uri="http://java.sun.com/portlet_2_0" prefix="portlet"
%>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
@@ -24,6 +26,14 @@
// for error handling
String errorMessage = (String)request.getAttribute("error:message");
+
+ //****JBEPP-180: fix the nested textarea issue ********
+ Pattern p = Pattern.compile("(?i)</textarea>");
+ Matcher m = p.matcher(sContent);
+ if(m.find()) {
+ sContent=m.replaceAll("</textarea>");
+ }
+ //*****************************************************
%>
<!-- tinyMCE -->