English spoken conference

Symfony 5: The Fast Track

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

Support this project

Disable auto inline

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:

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.