You need to be logged in to post in the forum - Log In
An active JCE Pro Subscription is required to post in the forum - Buy a Subscription
- Support
- Forum
- JCE Plugins / Addons
- Override default link on custom button
Support is currently Online
Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)
From 09:00 To 17:00 Europe/London (BST)
Hi,
I have designed a custom button which has a link to a popup iframe. The issue I have is that the iFrame links to an external widget address on another site, but by default the Editor adds JURI::base() to the $link parameter that we pass in the Button creation parameters in the function onDisplay($name) routine. As a result the plugin custom button href becomes something like:
"http://localhost/adminsitrator/http://www.adressoftheiframe.com/widget"
when it should just be:
"http://www.adressoftheiframe.com/widget"
Is there an event I can attach to (afterDisplay?) to modify the button href after the Editor generates the html but before the user may click it? Thanks for any help .
I have designed a custom button which has a link to a popup iframe. The issue I have is that the iFrame links to an external widget address on another site, but by default the Editor adds JURI::base() to the $link parameter that we pass in the Button creation parameters in the function onDisplay($name) routine. As a result the plugin custom button href becomes something like:
"http://localhost/adminsitrator/http://www.adressoftheiframe.com/widget"
when it should just be:
"http://www.adressoftheiframe.com/widget"
Is there an event I can attach to (afterDisplay?) to modify the button href after the Editor generates the html but before the user may click it? Thanks for any help .
I have designed a custom button which has a link to a popup iframe. The issue I have is that the iFrame links to an external widget address on another site, but by default the Editor adds JURI::base() to the $link parameter that we pass in the Button creation parameters in the function onDisplay($name) routine
JCE is not responsible for the creation of the buttons below the editor as these are Joomla Plugins. The buttons are rendered using the JLayoutHelper::render function, which as you rightly point out, renders the button with JURI::base() prepended to the href.
I don't know if it is possible to override the buttons layout with a custom one.
Just because you're not paranoid doesn't mean everybody isn't out to get you.
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!