Author: yzhishko
Date: 2009-12-16 09:24:53 -0500 (Wed, 16 Dec 2009)
New Revision: 19301
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org/jboss/tools/jsf/vpe/seam/template/SeamFormattedTextTemplate.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/formattedText.xhtml.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-4117 fixed
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org/jboss/tools/jsf/vpe/seam/template/SeamFormattedTextTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org/jboss/tools/jsf/vpe/seam/template/SeamFormattedTextTemplate.java 2009-12-16
13:54:03 UTC (rev 19300)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org/jboss/tools/jsf/vpe/seam/template/SeamFormattedTextTemplate.java 2009-12-16
14:24:53 UTC (rev 19301)
@@ -19,6 +19,7 @@
import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
import org.jboss.tools.vpe.editor.template.VpeCreationData;
import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.editor.util.VisualDomUtil;
import org.mozilla.interfaces.nsIComponentManager;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMNode;
@@ -106,7 +107,7 @@
if (null != patronItem) {
list = patronItem.getChildNodes();
// mainItem = visualDocument.createElement("DIV");
- patronItem = visualDocument.createElement(HTML.TAG_SPAN);
+ patronItem = VisualDomUtil.createBorderlessContainer(visualDocument);
createCopyChildren(visualDocument, patronItem, list);
}
VpeCreationData creationData = new VpeCreationData(patronItem);
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/formattedText.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/formattedText.xhtml.xml 2009-12-16
13:54:03 UTC (rev 19300)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/formattedText.xhtml.xml 2009-12-16
14:24:53 UTC (rev 19301)
@@ -1,6 +1,6 @@
<tests>
<test id="id1">
- <SPAN>
+ <SPAN CLASS="vpe-text">
<OL>
<LI>
{blog.text}
@@ -11,7 +11,7 @@
</SPAN>
</test>
<test id="id2">
- <SPAN>
+ <SPAN CLASS="vpe-text">
<SPAN CLASS="vpe-text">
It's easy to make *emphasis*, |monospace|,~deleted text~, super^scripts^ or
_underlines_.
</SPAN>
@@ -19,7 +19,7 @@
</test>
<test id="id3">
- <SPAN>
+ <SPAN CLASS="vpe-text">
<P>
It's easy to make
<B>