Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Minor request here:
I would like to switch the Enter and Shift+Enter option for a new line inside CKEditor.
When a user now presses enter on the end of a line, this is translated in a new paragraph
When a user uses shift+enter, this is translated in a new line
.
Can these 2 be switched?
I tried to code them in CKEditor files, but I realized that after every core update I would need to change it again.
That is not a very practical way.
Is it possible to add a checkbox for this in the "Text formats and editors" page, like under Full HTML / Basic HTML?
Comments
Comment #2
Wim LeersThanks for taking the time to report this!
However, why would you want to switch this? This is the default behavior on many (if not all?) operating systems.
Adding a new checkbox to do this would make the UI more complex for everybody, yet it'd only be used by a tiny number of users. So that's not a good fit for this, unfortunately.
Finally, you can customize CKEditor settings (
CKEditor.config
) per text format usinghook_editor_js_settings_alter()
.