Disable auto inline

Edit this page

Warning: You are browsing the documentation for version 1.x which is not maintained anymore.

If some of your projects are still using this version, consider upgrading.

Disable auto inline

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:

# app/config/config.yml
    auto_inline: false

Or you can disable it for a specific widget:

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


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.