[Product-Developers] TinyMCE behind deliverance

Carsten Senger senger at rehfisch.de
Fri Sep 25 09:29:45 UTC 2009


Hi Mirto,

--On Freitag, September 25, 2009 10:52:48 +0200 Mirto Silvio Busico
<mirtosilvio.busico at fastwebnet.it> wrote:
> how can I use TinyMCE with delierance?
>
> I have problems with the popup windows.
>
> Isee that, when you edit a page and ask to insrt a link (a picture, or
> everithing that needs a popup windows), in the page appear three divs:
>
> <div id="visual-portal-wrapper">
> </div>
> <div id="kss-spinner" style="display: none;">
> <img src="http://localhost:4190/intonso1/spinner.gif" alt=""/>
> </div>
> <div id="mce_68" class="plonepopup" style="overflow: auto; width: 830px;
> height: 504px; top: 315px; left: 230px; z-index: 300022;">
> </div>
> <div id="mceModalBlocker" class="plonepopup_modalBlocker" style="z-index:
> 300020; display: block;"/>
>
> I try to apply these deliverance rules:
>
>     <replace content='//*[@id="kss-spinner"]'
> theme='//*[@id="kss-spinner_in"]' />
>     <replace content='#mce_*' theme='//*[@id="mce_frame_in"]' />
>     <replace content='//*[@id="mceModalBlocker"]'
> theme='//*[@id="mceModalBlocker_in"]' />
>
> The problem is that the mce id changes everytime a popup is opened
> (mce_68, mce_69, mce_70,...) and I don't know how to use wildcards in the
> id names.
> I tried with "#mce_*" but it didn't work.
>
> Any help will be greately appreciated.

I use this rule pretty early in the rules file cause tinymce acquires the
templates form the javascript. I don't know if this works with all popups
from TinyMCE.

<match path="regex:^/portal_javascripts/.*" abort="1" />  <!-- TinyMCE -->

(<http://dev.plone.org/collective/browser/gnomeweb-plone/buildout/trunk/rules.xml>)

The popup I've looked at also had an id like "plone-popup". Something like
that should be used for all popups to make styling/rules easy.

..Carsten




More information about the Product-Developers mailing list