I am using CK Editor to display some string with html formatting like bold. I have created this string in C# and displaying in CKEditor. PFB my code
string abc = "<div><h1>Test Text</h1>abcd \n efgh\n <b>ijkl</b> </div>";
this.CKEditor2.Text = abc;
In my CKEditor it displays as follows Test Text abcdefghijkl
It clearly doesn't allow \n as line breaks. I am trying to set up the custom linebreaks for my CKEditor. I am not sure why its not working. PFB my config.js file for the CKEditor.
CKEDITOR.editorConfig = function (config) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.removePlugins = 'toolbar,elementspath,resize';
config.allowedContent = true;
config.ignoreEmptyParagraph = false;
var writer = new CKEDITOR.htmlWriter();
// The ...
Go to the complete details ...