TinyMCE behind deliverance

9 messages Options
Embed this post
Permalink
Mirto Silvio Busico-2 () TinyMCE behind deliverance
Reply Threaded More More options
Print post
Permalink
Hi all,

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.

Thanks
    Mirto


[mirtosilvio_busico.vcf]

begin:vcard
fn:Mirto Silvio Busico
n:Busico;Mirto Silvio
org:Busico Mirto Silvio
adr:;;Via Casiglion De' Pepoli 84;Roma;RM;00127;Italia
email;internet:[hidden email]
title:Dr.
tel;work:+39 333 4562651
tel;cell:+39 333 4562651
x-mozilla-html:TRUE
version:2.1
end:vcard



_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Carsten Senger-3 () Re: TinyMCE behind deliverance
Reply Threaded More More options
Print post
Permalink
Hi Mirto,

--On Freitag, September 25, 2009 10:52:48 +0200 Mirto Silvio Busico
<[hidden email]> 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

_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Mirto Silvio Busico-2 () Re: TinyMCE behind deliverance
Reply Threaded More More options
Print post
Permalink
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
> <[hidden email]> 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




[mirtosilvio_busico.vcf]

begin:vcard
fn:Mirto Silvio Busico
n:Busico;Mirto Silvio
org:Busico Mirto Silvio
adr:;;Via Casiglion De' Pepoli 84;Roma;RM;00127;Italia
email;internet:[hidden email]
title:Dr.
tel;work:+39 333 4562651
tel;cell:+39 333 4562651
x-mozilla-html:TRUE
version:2.1
end:vcard



_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
J-C Brand () Re: TinyMCE behind deliverance
Reply Threaded More More options
Print post
Permalink
In reply to this post by Mirto Silvio Busico-2
Mirto Silvio Busico wrote:
> Hi all,
>
> how can I use TinyMCE with delierance?
>
> I have problems with the popup windows.

<snip>


Hi Mirto,

I had similar problems before.

I used the following proxy path rules to allow the TinyMCE popups and
javascript to be loaded without any interference:
(Note that I don't apply a class to these proxy definitions)

    <!-- BEGIN: TinyMCE Popups -->
    <proxy path="regex:/.*/portal_javascripts/.*">
        <dest href="http://localhost:8099/" />
    </proxy>

    <proxy path="regex:/.*/tinymce-upload">
        <dest href="http://localhost:8099/" />
    </proxy>
    <!-- END: TinyMCE Popups -->


Hope this helps.

Regards
JC Brand




_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Carsten Senger-3 () Re: TinyMCE behind deliverance
Reply Threaded More More options
Print post
Permalink
In reply to this post by Mirto Silvio Busico-2
Hi Mirto,

--On Freitag, September 25, 2009 12:29:18 +0200 Mirto Silvio Busico
<[hidden email]> wrote:

[...]

>> <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%20Defaul
> t/jquery-cachekey4676.js" type="text/javascript">
>
> so it seems that the match did'n work.

That's how it should be so far. The page you requested does not have the
url */portal_javascripts/*,
and the rule is written to match the url of the page you requested, not a
tag inside it's html code. So if you request
http://your.plone.site/whatever, the rule does not match.

It only matches if you request
http://your.plone.site/portal_javascripts/some_html_site.
When TinyMCE opens a popup (or at least did in the version I wrote the rule
for), it requests a url similar to
http://your.plone.site/portal_javascripts/tinymce/plugins/some_popup_template.
The rule causes that deliverance aborts for this and leaves those files
untouched.

Do the popups work like expected now?

I don't know why if they don't. You can use the firefox extention "Live
HTTP headers" to log which requests firefox makes and see where TinyMCE
requests the popup contents from.


>> 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"

Than it was a class. I did not use it, it was just my second option to
write a rule based on this class. But I used the <match> rule instead.

..Carsten

_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
DarinHoustonOY () Re: TinyMCE behind deliverance
Reply Threaded More More options
Print post
Permalink
In reply to this post by Mirto Silvio Busico-2
george o malley grey s anatomy
miss venezuela 2009 en vivo
khloe kardashian marriage
iphone mms release date
flash forward tv show
john cho
diminished gluteal syndrome
strongest dog in the world
dickmorris.com/
strongest dog in the world
tylenol recall 2009
netanyahu speech video
19.2 pound baby
benjamin netanyahu un speech
fallingwater
john cho
ceviche
gayheart tape
carly fiorina website
csi riley
thamail morgan what did he do
michael oher
george o malley grey s anatomy
seviche
ruth bader ginsburg
the blind side
pocketbook monologues
ceviche
matte nail polish
olivia hamilton
who is big poppa on real housewives of atlanta
5 stages of grief
flash forward
the office season 6 episode 2
nick thune
seth macfarlane flash forward
randy quaid
watch vampire diaries episode 3
flash forward tv show
michael oher
film noir
grey s anatomy season premiere 2009
martha plimpton
19.2 pound baby
survivor samoa episode 2
smokey robinson
iphone mms update
tylenol recall 2009
you make me smile lyrics
defend hannah
ole miss
khloe kardashian marriage
thamail morgan
jevan snead
reina capodici
jay z on oprah
lee najjar
rush limbaugh weight loss
netanyahu speech video
what caused the great depression
fountain place dallas
carly fiorina website
iphone mms release date
indonesia 19 pound baby
flashforward abc
chyler leigh pregnant
dallas terrorist
dexter mccluster
hannah giles hot
tr knight
gayheart tape
evi quaid
rampage jackson retiring
dickmorris.com/
kimbo slice vs roy nelson spoiler
justice ginsburg
teach for america
ole miss vs south carolina
diminished gluteal syndrome
benjamin netanyahu un speech
csi riley
big russ
marfa texas
forever 21
where the wild things are
chiodos craig owens kicked out
houston nutt
fallingwater
khloe kardashian engagement ring
miss venezuela 2009 en vivo
eric dane and wife rebecca gayheart
halo 3 odst audio logs locations
netanyahu speech united nations
dallas bomb threat
heaviest baby at birth
winnie ruth judd
project 21
donald glover
bumpkin
thamail morgan what did he do
abc.com full episode player
grey s anatomy cast list
zach walker
strongest dog in the world
biggest baby ever born
the office the meeting
nocturnal festival 2009
flashforward cast
sonya walger
joss stone
harold and kumar
john cho
g20 protests
april 29 2010
mackenzie phillips on oprah
miles thorson
where the wild things are trailer song
ford electric car
hydrogen peroxide bomb
governor paterson
lake city movie
ellen pompeo baby
karaoke tube
randy quaid arrest
it s always sunny in philadelphia season 5 episode 2
richard jewell
the martyrs
dallas terror plot
rush limbaugh on jay leno
iphone picture messaging
watch grey s anatomy season 6 episode 1 online
Mirto Silvio Busico-2 () Re: TinyMCE behind deliverance
Reply Threaded More More options
Print post
Permalink
In reply to this post by J-C Brand
Sorry to be late in replying.
I'll try this asap.

JC Brand ha scritto:

> Mirto Silvio Busico wrote:
>> Hi all,
>>
>> how can I use TinyMCE with delierance?
>>
>> I have problems with the popup windows.
>
> <snip>
>
>
> Hi Mirto,
>
> I had similar problems before.
>
> I used the following proxy path rules to allow the TinyMCE popups and
> javascript to be loaded without any interference:
> (Note that I don't apply a class to these proxy definitions)
>
>    <!-- BEGIN: TinyMCE Popups -->
>    <proxy path="regex:/.*/portal_javascripts/.*">
>        <dest href="http://localhost:8099/" />
>    </proxy>
>
>    <proxy path="regex:/.*/tinymce-upload">
>        <dest href="http://localhost:8099/" />
>    </proxy>
>    <!-- END: TinyMCE Popups -->
>
>
> Hope this helps.
>
> Regards
> JC Brand
>
>
>
>

[mirtosilvio_busico.vcf]

begin:vcard
fn:Mirto Silvio Busico
n:Busico;Mirto Silvio
org:Busico Mirto Silvio
adr:;;Via Casiglion De' Pepoli 84;Roma;RM;00127;Italia
email;internet:[hidden email]
title:Dr.
tel;work:+39 333 4562651
tel;cell:+39 333 4562651
x-mozilla-html:TRUE
version:2.1
end:vcard



_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Mirto Silvio Busico-2 () Re: TinyMCE behind deliverance
Reply Threaded More More options
Print post
Permalink
In reply to this post by Carsten Senger-3
Sorry to be late in replaying.

Carsten Senger ha scritto:

> Hi Mirto,
>
> --On Freitag, September 25, 2009 12:29:18 +0200 Mirto Silvio Busico
> <[hidden email]> wrote:
>
> [...]
>
>>> <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%20Defaul 
>>
>> t/jquery-cachekey4676.js" type="text/javascript">
>>
>> so it seems that the match did'n work.
>
> That's how it should be so far. The page you requested does not have the
> url */portal_javascripts/*,
> and the rule is written to match the url of the page you requested, not a
> tag inside it's html code. So if you request
> http://your.plone.site/whatever, the rule does not match.
>
> It only matches if you request
> http://your.plone.site/portal_javascripts/some_html_site.
> When TinyMCE opens a popup (or at least did in the version I wrote the
> rule
> for), it requests a url similar to
> http://your.plone.site/portal_javascripts/tinymce/plugins/some_popup_template.
>
> The rule causes that deliverance aborts for this and leaves those files
> untouched.
>
> Do the popups work like expected now?
>
No, unlukly I see only the popup and its content is empty.

> I don't know why if they don't. You can use the firefox extention "Live
> HTTP headers" to log which requests firefox makes and see where TinyMCE
> requests the popup contents from.
Just installed, now I'll try to investigate.

>
>
>>> 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"
>
> Than it was a class. I did not use it, it was just my second option to
> write a rule based on this class. But I used the <match> rule instead.
>
> ..Carsten
>

[mirtosilvio_busico.vcf]

begin:vcard
fn:Mirto Silvio Busico
n:Busico;Mirto Silvio
org:Busico Mirto Silvio
adr:;;Via Casiglion De' Pepoli 84;Roma;RM;00127;Italia
email;internet:[hidden email]
title:Dr.
tel;work:+39 333 4562651
tel;cell:+39 333 4562651
x-mozilla-html:TRUE
version:2.1
end:vcard



_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Mirto Silvio Busico-2 () [SOLVED] Re: TinyMCE behind deliverance
Reply Threaded More More options
Print post
Permalink
In reply to this post by J-C Brand
Fantastic! It worked.

Thank you a lot!!!

Mirto

JC Brand ha scritto:

> Mirto Silvio Busico wrote:
>> Hi all,
>>
>> how can I use TinyMCE with delierance?
>>
>> I have problems with the popup windows.
>
> <snip>
>
>
> Hi Mirto,
>
> I had similar problems before.
>
> I used the following proxy path rules to allow the TinyMCE popups and
> javascript to be loaded without any interference:
> (Note that I don't apply a class to these proxy definitions)
>
>    <!-- BEGIN: TinyMCE Popups -->
>    <proxy path="regex:/.*/portal_javascripts/.*">
>        <dest href="http://localhost:8099/" />
>    </proxy>
>
>    <proxy path="regex:/.*/tinymce-upload">
>        <dest href="http://localhost:8099/" />
>    </proxy>
>    <!-- END: TinyMCE Popups -->
>
>
> Hope this helps.
>
> Regards
> JC Brand
>
>
>
>

[mirtosilvio_busico.vcf]

begin:vcard
fn:Mirto Silvio Busico
n:Busico;Mirto Silvio
org:Busico Mirto Silvio
adr:;;Via Casiglion De' Pepoli 84;Roma;RM;00127;Italia
email;internet:[hidden email]
title:Dr.
tel;work:+39 333 4562651
tel;cell:+39 333 4562651
x-mozilla-html:TRUE
version:2.1
end:vcard



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