User tests: Successful: Unsuccessful:
When loaded both captcha and editor plugins on same page, onDisplay function on both plugins conflict with each other as they have different number of parameters.
Ref: #23322
Pull Request for Issue #23322 .
Added a new proxy function for b/w compatibility and renamed the onDisplay function to onDisplayCaptcha
On any form page where the editor loaded, add below code
JPluginHelper::importPlugin('captcha');
$app->triggerEvent('onInit', array(null, 'ca_captcha'));
$recaptcha = $app->triggerEvent('onDisplay', array(null, 'ca_captcha', 'class=""'));
echo (isset($recaptcha[0])) ? $recaptcha[0] : '';
Captcha loaded fine and editor works fine.
Need to update the documentation with the renamed onDisplayCaptcha function name.
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
Labels |
Added:
?
|
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-12-25 14:02:53 |
Closed_By | ⇒ | corejoomla |
This PR should be applied on staging as the issue exist on current version as well. So closing this and opening another PR.