[Product-Developers] TinyMCE behind deliverance

Mirto Silvio Busico mirtosilvio.busico at fastwebnet.it
Fri Sep 25 10:29:18 UTC 2009


Thanks Carstens, but it didn't work, see below.

Carsten Senger ha scritto:
> 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>) 
>
If I understand correctly, this should drop everything that contains 
with "portal_javascripts", bu I'm confused: in the head of the 
deliverance converted page I see

<script src="http://plone.msb.net:4170/intonso1/portal_javascripts/Plone%20Default/jquery-cachekey4676.js" type="text/javascript">

so it seems that the match did'n work.
>
> 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
>
I'm not able to determine the popup id (I didn't found "plone-popup" id, 
only a "plonepopup" class.
In your rules.xml file I was not able to find any rule related to 
"plone-popup"

What I'm doing wrong?

Mirto



-------------- next part --------------
A non-text attachment was scrubbed...
Name: mirtosilvio_busico.vcf
Type: text/x-vcard
Size: 272 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20090925/de274865/attachment.vcf>


More information about the Product-Developers mailing list