Skip to content

Disable auto inline

Edit this page

By default, CKEditor enables the auto inline feature meaning that any contenteditable attribute sets to true will be converted to CKEditor instance automatically. If you want to disable it, you can do it globally in your configuration:

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

Or you can disable it for a specific widget:

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

Note

This option will only disable the CKEditor auto inline feature not the browser one if it supports it.

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