This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1695796
Originator: NO
THks will try to fix it
Logged In: YES
user_id=1915426
Originator: NO
Patch for v0.9.6:
to fix the "singleline" bug, please use:
// get code from editor
getCode : function() {
var code = editor.innerHTML;
code = code.replace(/<br>/gi,'\n'); //this line was added.
code = code.replace(/\u2009/g,'');
code = code.replace(/<.*?>/g,'');
code = code.replace(/</g,'<');
code = code.replace(/>/g,'>');
code = code.replace(/&/gi,'&');
return code;
},
// put code inside editor
setCode : function() {
var code = arguments[0];
code = code.replace(/\u2009/gi,'');
code = code.replace(/&/gi,'&');
code = code.replace(/</g,'<');
code = code.replace(/>/g,'>');
code = code.replace(/\r\n/g, '<br>'); //this line was added,
code = code.replace(/\n/g, '<br>'); //and this one.
editor.innerHTML = code;
},
Logged In: YES
user_id=1695796
Originator: NO
will added into a inter release.
with a thanks to Mikey
Logged In: YES
user_id=1312539
Originator: NO
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Logged In: YES
user_id=1203985
Originator: NO
looks like the patch still didn't make its way into 0.9.6
this bug is outstanding, ATM.
---
PS
btw, CP is currently used in the "Movable Type OS" template/style editor.