[jboss-user] [JBoss Portal] - Bug ? CMS Admin : config of TinyMCE / CSS Styles
Antoine_h
do-not-reply at jboss.com
Sun Oct 29 20:46:29 EST 2006
It seems there is a bug in Tiny MCE configuration, about the styles used for the contents.
The AdminCMS configure TinyMCE with the CSS style sheet of the theme (the first one given in the descriptor).
But when doing this, it seems the WebApp context is forgotten in the url.
mine is :
content_css : "http://localhost:8080/themes/ShWaTheme/portal_style.css"
and should be :
content_css : "http://localhost:8080/MyLayoutWebApp/themes/ShWaTheme/portal_style.css"
The css file is set in the portal-themes.xml descriptor :
<link rel="stylesheet" id="main_css" href="/themes/ShWaTheme/portal_style.css" type="text/css" />
With this, the css file is correctly set in the header of the html page link.
I am using the jsp tag provided :
<%@ taglib uri="/WEB-INF/tld/portal-layout.tld" prefix="pLayout" %>
| .../...
| <!-- inject the theme; default to the Nphalanx theme if nothing is selected for the portal or the page -->
| <pLayout:theme themeName='SWGenTheme'/>
the link is correctly set for the pages, with the "MyLayoutWebApp" prefix added. So I gess it is the correct definition in the descriptor, and the WebApp context is forgotten in the CMSAdminPortlet.
Workaround : I added a line in the portal-themes.xml descriptor :
<link rel="stylesheet" id="main_css" href="/MyLayoutWebApp/themes/ShWaTheme/portal_style.css" type="text/css" />
(It is set as the first css defined, because CMSAdminPortlet uses the first css definition to configure TinyMCE with it).
this way, the tinyMCE gets it's style definition, and the whole page get the 2 definition of css in the header. The first one is wrong and the server return nothing, but that's ok with the browser : it ignore this.
Not that clean... but allow to go on for the time being.
Shall I post a Jira ?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981644#3981644
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981644
More information about the jboss-user
mailing list