Author: xlawrence
Date: Mon Jun 18 09:50:24 2007
New Revision: 17611
URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D17611&repname=
=3Djahia
Log:
resolve issue: http://www.jahia.net/jira/browse/BOUY-33: Probl=C3=A8me de d=
'espace ( ) apr=C3=A8s lien sur image dans Fck editor
We have to add this extra before tidy preprocessing for all anchors =
of type <a name=3D""></a> because otherwise tidy corrupts the html.
Thus, we need to generate something looking like: <a name=3D""> </a> f=
or anchors only.
Added extra check so we do not add in a in case we have image links.
Modified:
branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/engines/shared/Big=
Text_Field.java
Modified: branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/engines/shar=
ed/BigText_Field.java
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-5-0-SP=
-BRANCH/core/src/java/org/jahia/engines/shared/BigText_Field.java&rev=3D176=
11&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/engines/shared/Big=
Text_Field.java (original)
+++ branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/engines/shared/Big=
Text_Field.java Mon Jun 18 09:50:24 2007
@@ -178,11 +178,13 @@
Vector DOMVisitors =3D ServicesRegistry.getInstance().
getHtmlParserService().
getHtmlDOMVisitors(theField.getJahiaID());
+ fieldValue =3D StringUtils.replace(fieldValue, "/></a>", "=
/>///</a>");
fieldValue =3D StringUtils.replace(fieldValue, "></a>", ">=
</a>");
fieldValue =3D JahiaTextContentTidy.tidyPreProcessing(fiel=
dValue);
fieldValue =3D ServicesRegistry.getInstance().getHtmlParse=
rService().
parse(fieldValue, DOMVisitors, theField.getSiteID(=
));
fieldValue =3D JahiaTextContentTidy.tidyPostProcessing(fie=
ldValue);
+ fieldValue =3D StringUtils.replace(fieldValue, "/>///</a>"=
, "/></a>");
}
=
// Check for HTML parser errors
_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list