You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sv...@apache.org on 2005/03/15 22:24:41 UTC
cvs commit: incubator-myfaces/src/components/org/apache/myfaces/custom/htmlEditor HtmlEditorRenderer.java
svieujot 2005/03/15 13:24:41
Modified: src/components/org/apache/myfaces/custom/htmlEditor
HtmlEditorRenderer.java
Log:
Style handling improvements.
Revision Changes Path
1.26 +8 -3 incubator-myfaces/src/components/org/apache/myfaces/custom/htmlEditor/HtmlEditorRenderer.java
Index: HtmlEditorRenderer.java
===================================================================
RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/custom/htmlEditor/HtmlEditorRenderer.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- HtmlEditorRenderer.java 15 Mar 2005 05:24:03 -0000 1.25
+++ HtmlEditorRenderer.java 15 Mar 2005 21:24:41 -0000 1.26
@@ -27,7 +27,6 @@
import org.apache.myfaces.component.UserRoleUtils;
import org.apache.myfaces.component.html.util.AddResource;
-import org.apache.myfaces.renderkit.JSFAttr;
import org.apache.myfaces.renderkit.RendererUtils;
import org.apache.myfaces.renderkit.html.HTML;
import org.apache.myfaces.renderkit.html.HtmlRenderer;
@@ -39,6 +38,9 @@
* @author Sylvain Vieujot (latest modification by $Author$)
* @version $Revision$ $Date$
* $Log$
+ * Revision 1.26 2005/03/15 21:24:41 svieujot
+ * Style handling improvements.
+ *
* Revision 1.25 2005/03/15 05:24:03 svieujot
* Add a fallback textarea mode to the htmlEditor.
*
@@ -1130,7 +1132,10 @@
}
if( editor.getStyle()!=null ){
// Convert the style into an style declaration so that it doesn't preempt the Zoom works as it's relying on changing the class
- AddResource.addInlineStyleToHeader("#kupu-editor{"+editor.getStyle()+"}",context);
+ AddResource.addInlineStyleToHeader(
+ "#kupu-editor{height: inherit;} "+
+ "div.kupu-fulleditor{"+editor.getStyle()+"}",
+ context);
}
writer.writeAttribute(HTML.CLASS_ATTR,
"kupu-editorframe"+(editor.getStyleClass()==null ? "" : " "+editor.getStyleClass()), null);