I try to use ckeditor in symfony3, I successfully installed it but get an error when I try to us it in my form as described in tutorial (https://symfony.com/doc/current/bundles/IvoryCKEditorBundle/index.html):
$builder->add('content', CKEditorType::class);
but that produces this error:
Type error: Argument 1 passed to Ivory\CKEditorBundle\Form\Type\CKEditorType::__construct() must be an instance of Ivory\CKEditorBundle\Model\ConfigManagerInterface, none given
it looks like, there is a problem because a FormType should not demand params in its constructor, am I wrong?
I had the same error and solved it by adding CKEditorBundle to AppKernel. This was stated in the comments of CountZero's answer. You can find IvoryCKEditorBundle installation notes here.
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
// ...
);
// ...
}
}
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments