Skip to content
Snippets Groups Projects
Commit bfcebd5d authored by Jared Hancock's avatar Jared Hancock
Browse files

Use Redactor in linebreaks mode

Linebreaks mode will result in <Enter> key adding a <br/> element to the
HTML markup rather than starting a new paragraph <p> element.

This patch also changes the behavior of the <Tab> key to change focus away
from the Redactor editor rather than indenting the current block.
parent d6d4a077
No related branches found
No related tags found
No related merge requests found
...@@ -134,7 +134,9 @@ $(function() { ...@@ -134,7 +134,9 @@ $(function() {
'focus': false, 'focus': false,
'plugins': ['fontcolor','fontfamily'], 'plugins': ['fontcolor','fontfamily'],
'imageGetJson': 'ajax.php/draft/images/browse', 'imageGetJson': 'ajax.php/draft/images/browse',
'syncBeforeCallback': captureImageSizes 'syncBeforeCallback': captureImageSizes,
'linebreaks': true,
'tabFocus': false
}; };
if (el.data('redactor')) return; if (el.data('redactor')) return;
if (el.hasClass('draft')) { if (el.hasClass('draft')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment