In any component form page, load the editor using below code
<?php echo $form->getInput('description'); ?>
and load recaptcha plugin with 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] : '';
Both editor and recaptcha loaded
throws error and it shows below error in stacktrace
Too few arguments to function PlgEditorTinymce::onDisplay(), 3 passed in D:\xampp\htdocs\j4\libraries\src\Plugin\CMSPlugin.php on line 287 and at least 6 expected
Joomla 4, XAMPP, PHP 7.2
Both captcha and editor plugins are using same onInit
and onDisplay
functions which may be the reason for the issue.
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-12-28 11:57:37 |
Closed_By | ⇒ | Quy |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-12-28 11:57:37 |
Closed_By | ⇒ | joomla-cms-bot |
See PR #23331
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/23322