Hi,
Using your linebreak fiddle example I thought I could easily modify it to use br as line breaks.
$('#editor').jqxEditor({
height: 400,
width: 800,
theme: 'energyblue',
lineBreak: 'br'
});
But as soon as I changed it, in Chrome and FF it seems to insert and additional character 8203 on linebreak. You even recognize it on Backspace that it takes one more keypress to return back to previous line.
For reproducing I extended your fiddle demo so that after a timeout it prints the character codes in question compared to the value.
So just enter “aa” {enter} and “aa” (without the quotes) again and wait for the alert to appear.
$('#editor').jqxEditor({
height: 400,
width: 800,
theme: 'energyblue',
lineBreak: 'br'
});
setTimeout(function () {
var s = "";
var content = $('#editor').val();
for (var i=0;i<6;i++)
{
s+="," + content.charCodeAt(3+i);
}
alert(content + "\n" + s);
}, 10000);
As you’ll see after <br> it inserted the character code 8203 which is known as so called Zero Width Character.
Did I do something wrong? Do I have to set lineBreak to something different?
thanks,
Matt