Ticket #230 (new New Feature)
Change the default <br> when pasting plain txt with CRLF
| Reported by: | tazzydemon | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | |
| Keywords: | HasPatch | Cc: |
Description
Sirs, I may seem a pest after my request for more flexible instance directory control but my bosses also asked me to change the paste text behaviour from inserting <br> for line breaks to in this case a <p> or maybe a <div>
I added this to FCKConfig.js (v2.4)
FCKConfig.EntityForCR = "<p>";
And then modified the following files:
fckeditorcode_ie.js approx line 31
FCKTools.HTMLEncode(A).replace(/\n/g,FCKConfig.EntityForCR)
fckeditorcode_gecko.js approx line 34
where it says FCKTools.HTMLEncode just after that tack this at the end A=A.blah bit
A=A.replace(/\n/g,FCKConfig.EntityForCR);return A;
Heaven knows it works! Is this a good idea? Probably not!!
Julian
Change History
Note: See
TracTickets for help on using
tickets.