SymfonyWorld Online 2020
100% online
30+ talks + workshops
Live + Replay watch talks later

Fallback to textarea

1.0 version
Maintained

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:

1
2
3
# app/config/config_test.yml
fos_ck_editor:
    enable: false

Or you can disable it in your widget:

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

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