Ticket #230 (new New Feature)

Opened 21 months ago

Last modified 9 months ago

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

Changed 21 months ago by fredck

  • type changed from Bug to New Feature

Changed 9 months ago by w.olchawa

  • keywords HasPatch added
Note: See TracTickets for help on using tickets.