Drupal Association members fund grants that make connections all over the world.
Wysiwyg Linebreaks allows users of wysiwyg editors to save and open markup from their website with linebreaks instead of
<br /> tags.
You can choose between two different methods:
- Force linebreaks: Your content will always preserve whitespace/linebreaks around blocks of text, rather than paragraph and break tags.
- Convert linebreaks: Your legacy content will appear correctly in your WYSIWYG editor, then the content will be saved with the markup added by the editor).
The 'force' option is useful for sites where you would like to edit content both with and without wysiwyg editors (so you don't have to manually enter paragraph and linebreak tags everywhere).
Basically, you can edit content that was originally created without a wysiwyg editor (for instance, simply using Drupal's Filtered HTML format, a user may hit enter twice to create a new paragraph—no
<p> tag wraps the block of text in this case), without having to deal with the headache of reformatting everything inside the wysiwyg editor.
This module works with CKEditor in core. No extra contrib modules required.
Install the module, then go to the Text formats and editors page (
admin/config/content/formats), configure a format where CKEditor is being used, and choose a conversion method under the Linebreaks settings.
Install the module. To enable this plugin, you need to edit one of your Wysiwyg profiles (
admin/config/content/wysiwyg) and check either the 'Force linebreaks' or 'Convert linebreaks' option under "Buttons and plugins".
#D8CX: I pledge that Wysiwyg Linebreaks will have a full Drupal 8 release on the day that Drupal 8 is released. Fulfilled!
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Filters/Editors
- Reported installs: 3,782 sites currently report using this module. View usage statistics.
- Downloads: 23,449
- Automated tests: Enabled
- Last modified: February 16, 2016
- Stable releases are covered by the security advisory policy.
Look for the shield icon below.