Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-05-07 12:10:35

dantan
New member
Registered: 2007-05-07
Posts: 1

Close Editor and redirect

How do I add a button that closes the fullscreen editor and redirects to the edited page? I already saved it with the SaveSubmit Plugin.

I started with something like that:

xinha_config.registerButton("close_button", "close", "close.gif", false, function(){onclick: window.close()});

Maybe you can help me.

Offline

#2 2007-05-08 05:37:27

jedi58
Xinha Authority
From: Leicester, UK
Registered: 2007-01-14
Posts: 113
Website

Re: Close Editor and redirect

use window.location for the redirect

...didn't think the full screen editor could do a popup window though; it's an absolutely position div so it'd be: e._fullScreen();

xinha_config.registerButton("close_button", "close", "close.gif", false, function(e){ e._fullScreen(); window.href='......'; });

where ...... is the URL to redirect to


David G. Paul
[url]http://www.newearthonline.co.uk[/url]

Offline

Board footer

Powered by FluxBB