English spoken conference

Symfony 5: The Fast Track

A new book to learn about developing modern Symfony 5 applications.

Support this project

Fallback to textarea

Fallback to textareaΒΆ

Sometimes, you don't want to use the CKEditor widget but a simple textarea (e.g testing purpose). As CKEditor uses an iFrame to render the widget, it can be difficult to automate something on it. To disable CKEditor and fallback on the parent widget (textarea), you can disable it globally in your configuration:

# app/config/config_test.yml
    enable: false

Or you can disable it in your widget:

$builder->add('field', 'ckeditor', array('enable' => false));

This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.