textarea-fallback.rst 580 B

12345678910111213141516171819
  1. Fallback to textarea
  2. ====================
  3. Sometimes, you don't want to use the CKEditor widget but a simple textarea (e.g
  4. testing purpose). As CKEditor uses an iFrame to render the widget, it can be
  5. difficult to automate something on it. To disable CKEditor and fallback on the
  6. parent widget (textarea), you can disable it globally in your configuration:
  7. .. code-block:: yaml
  8. # app/config/config_test.yml
  9. fos_ck_editor:
  10. enable: false
  11. Or you can disable it in your widget:
  12. .. code-block:: php
  13. $builder->add('field', 'ckeditor', array('enable' => false));