From: <jbo...@li...> - 2005-10-15 20:23:11
|
Author: szimano Date: 2005-10-15 16:23:00 -0400 (Sat, 15 Oct 2005) New Revision: 1392 Added: trunk/forge/portal-extensions/jbosswiki/wiki-common/src/java/org/jboss/wiki/plugins/TextAreaChange.java Modified: trunk/forge/portal-extensions/jbosswiki/wiki-common/.classpath trunk/forge/portal-extensions/jbosswiki/wiki-common/src/etc/WikiTypes.xml Log: http://jira.jboss.com/jira/browse/JBWIKI-55 fixed error with </textarea> Modified: trunk/forge/portal-extensions/jbosswiki/wiki-common/.classpath =================================================================== --- trunk/forge/portal-extensions/jbosswiki/wiki-common/.classpath 2005-10-14 20:37:23 UTC (rev 1391) +++ trunk/forge/portal-extensions/jbosswiki/wiki-common/.classpath 2005-10-15 20:23:00 UTC (rev 1392) @@ -1,46 +1,24 @@ <?xml version="1.0" encoding="UTF-8"?> - <classpath> - <classpathentry excluding="" kind="src" path="src/java"> - </classpathentry> - <classpathentry output="target/test-classes" kind="src" path="src/test/java"> - </classpathentry> - <classpathentry kind="var" path="MAVEN_REPO/junit/jars/junit-3.8.1.jar"> - </classpathentry> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"> - </classpathentry> - <classpathentry kind="var" path="MAVEN_REPO/aslibs/jars/javax.servlet.jar"> - </classpathentry> - <classpathentry kind="var" path="MAVEN_REPO/aslibs/jars/javax.servlet.jsp.jar"> - </classpathentry> - <classpathentry kind="var" path="MAVEN_REPO/tmate/jars/javasvn.jar"> - </classpathentry> - <classpathentry kind="var" path="MAVEN_REPO/tmate/jars/jsch.jar"> - </classpathentry> - <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/activation.jar"> - </classpathentry> - <classpathentry kind="var" path="MAVEN_REPO/commons-fileupload/jars/commons-fileupload-1.0.jar"> - </classpathentry> - <classpathentry kind="var" path="MAVEN_REPO/dom4j/jars/dom4j-1.6.jar"> - </classpathentry> - <classpathentry kind="var" path="MAVEN_REPO/jdom/jars/jdom-1.0.jar"> - </classpathentry> - <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/jboss-ejb3x.jar"> - </classpathentry> - <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/jboss-ejb3.jar"> - </classpathentry> - <classpathentry kind="var" path="MAVEN_REPO/portlet-api/jars/portlet-api-1.0.jar"> - </classpathentry> - <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/jboss-jmx.jar"> - </classpathentry> - <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/jboss-common.jar"> - </classpathentry> - <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/portal-common-lib.jar"> - </classpathentry> - <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/portal-core-lib.jar"> - </classpathentry> - <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/portal-portlet-lib.jar"> - </classpathentry> - <classpathentry kind="output" path="target/classes"> - </classpathentry> -</classpath> \ No newline at end of file + <classpathentry kind="src" path="src/java"/> + <classpathentry kind="src" path="src/test/java"/> + <classpathentry kind="var" path="MAVEN_REPO/junit/jars/junit-3.8.1.jar"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="var" path="MAVEN_REPO/aslibs/jars/javax.servlet.jar"/> + <classpathentry kind="var" path="MAVEN_REPO/aslibs/jars/javax.servlet.jsp.jar"/> + <classpathentry kind="var" path="MAVEN_REPO/tmate/jars/javasvn.jar"/> + <classpathentry kind="var" path="MAVEN_REPO/tmate/jars/jsch.jar"/> + <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/activation.jar"/> + <classpathentry kind="var" path="MAVEN_REPO/commons-fileupload/jars/commons-fileupload-1.0.jar"/> + <classpathentry kind="var" path="MAVEN_REPO/dom4j/jars/dom4j-1.6.jar"/> + <classpathentry kind="var" path="MAVEN_REPO/jdom/jars/jdom-1.0.jar"/> + <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/jboss-ejb3x.jar"/> + <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/jboss-ejb3.jar"/> + <classpathentry kind="var" path="MAVEN_REPO/portlet-api/jars/portlet-api-1.0.jar"/> + <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/jboss-jmx.jar"/> + <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/jboss-common.jar"/> + <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/portal-common-lib.jar"/> + <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/portal-core-lib.jar"/> + <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/portal-portlet-lib.jar"/> + <classpathentry kind="output" path="target/classes"/> +</classpath> Modified: trunk/forge/portal-extensions/jbosswiki/wiki-common/src/etc/WikiTypes.xml =================================================================== --- trunk/forge/portal-extensions/jbosswiki/wiki-common/src/etc/WikiTypes.xml 2005-10-14 20:37:23 UTC (rev 1391) +++ trunk/forge/portal-extensions/jbosswiki/wiki-common/src/etc/WikiTypes.xml 2005-10-15 20:23:00 UTC (rev 1392) @@ -105,6 +105,10 @@ <name>edit</name> <class>org.jboss.wiki.plugins.DefaultWikiType</class> <plugin> + <name>textAreaChange</name> + <class>org.jboss.wiki.plugins.TextAreaChange</class> + </plugin> + <plugin> <name>translateUids</name> <class>org.jboss.wiki.plugins.TranslateUids</class> </plugin> Added: trunk/forge/portal-extensions/jbosswiki/wiki-common/src/java/org/jboss/wiki/plugins/TextAreaChange.java =================================================================== --- trunk/forge/portal-extensions/jbosswiki/wiki-common/src/java/org/jboss/wiki/plugins/TextAreaChange.java 2005-10-14 20:37:23 UTC (rev 1391) +++ trunk/forge/portal-extensions/jbosswiki/wiki-common/src/java/org/jboss/wiki/plugins/TextAreaChange.java 2005-10-15 20:23:00 UTC (rev 1392) @@ -0,0 +1,23 @@ +package org.jboss.wiki.plugins; + +import org.jboss.wiki.WikiPage; +import org.jboss.wiki.WikiPlugin; +import org.jboss.wiki.WikiSession; + +public class TextAreaChange extends WikiPlugin { + + @Override + public WikiPage process(WikiPage wikiPage, WikiSession wikiSession) { + String content = wikiPage.getContent(); + + wikiPage.setPageContent(content.replaceAll("</textarea>","</textarea>")); + + return wikiPage; + } + + @Override + public void init() { + + } + +} |