This content has been marked as final.
Show 1 reply
-
1. Re: Richfaces 3.3.x - rich:editor - Is there a way to specify a .xcss instead of a .css with param "content_css"
nodeny Apr 2, 2012 8:47 AM (in response to nodeny)Ok, I found a way to manage it :
> 1. I retrieve the resource url with a bean :
public String getResourceUrl(String resource) {
ViewHandler viewHandler = FacesContext.getCurrentInstance().getApplication().getViewHandler();
return viewHandler.getResourceURL(FacesContext.getCurrentInstance(), resource);
}
> 2 . I include it with the "content_css" param :
<rich:editor [...]>
<f:param name="content_css" value="#{myBean.getResourceUrl('resource:///ng/ui/style/theme/myFile.xcss')}"/>
.....
</rich:editor>
> 3. Enjoy