For wyswyg editors,
To get a single line, you press SHIFT + Enter Key
Ex.
I am going to write a poem
I am writing a poem
I am writing a poem
To get double line space, you press just Enter.
Ex.
I am going to school
I have come home
I live in the world
Now how to interchange the two programatically?
Go to site.com/qa-plugins/wysiwyg-editor/ckeditor/config.js
open the config.js file
The contents are as follows;
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For complete reference see:
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
// NOTE: if you make changes to this file, make sure that you do not overwrite it when upgrading Q2A!
// The toolbar arrangement, two rows of buttons
config.toolbar = [
{ name: 'basic', items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript' ] },
{ name: 'color', items: [ 'TextColor', 'BGColor' ] },
{ name: 'align', items: [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ] },
{ name: 'clipboard', items: [ 'Cut', 'Copy', 'Paste', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
'/',
{ name: 'font', items: [ 'Font', 'FontSize', 'Format' ] },
{ name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote' ] },
{ name: 'links', items: [ 'Link', 'Unlink' ] },
{ name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule', 'SpecialChar', 'Smiley' ] },
{ name: 'last', items: [ 'RemoveFormat', 'Maximize' ] }
];
// Set the most common block elements
config.format_tags = 'p;h1;h2;h3;pre';
config.entities = false;
//add this line to reduce double lines
config.enterMode = CKEDITOR.ENTER_BR; // inserts `<br />`
// Make dialogs simpler
config.removeDialogTabs = 'image:advanced;link:advanced;table:advanced';
// Use native spell checking (note: Ctrl+right-click is required for native context menu)
config.disableNativeSpellChecker = false;
};
Add the bold lines above