I've found that TinyMCE load plone.css, which recreate the plone css for 
external use. Then I've customized plone.css and inserted a test in it:

for stylesheet in stylesheets:
   if stylesheet.getRendering() in ['import','inline','link']:
     if not (stylesheet.getId().find('hiviz-light') <> -1 or 
stylesheet.getId().find('hiviz-dark') <> -1):
      print portal_css.restrictedTraverse('%s/%s' % (current_skin, 
stylesheet.getId()))

it seems to work :)

Il 13/12/2010 10:08, Yuri ha scritto:
> Hi all!
>
>    I need to enable/disable a css while I'm or I'm not on tinymce popups.
>
>    My first approach has been to condition it on url:
>
> python:not( request.get('ACTUAL_URL').endswith('ploneimage.htm'))
>
> but this does not work.
>
> Any idea? Thank you very much :)
> _______________________________________________
> Product-Developers mailing list
> [email protected]
> http://lists.plone.org/mailman/listinfo/product-developers
>    

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to