﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
230	Change the default <br> when pasting plain txt with CRLF	Julian Warren		"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"	New Feature	closed	Normal		General	FCKeditor 2.5	wontfix	HasPatch	
