When using PasteFromWord in older versions of FCK paragraphs were rendered as P tags (correct in my view). The current version renders paragraphs as DIV tags which is really hard to deal with.
Does nayone know what the last version of FCK was that used P tags? Or deos anyone have a fix for the current version.
Regards
John
Does nayone know what the last version of FCK was that used P tags? Or deos anyone have a fix for the current version.
Regards
John
Re: Paste from word paragraphs
// Transform <P> to <DIV>
//var re = new RegExp( '(<P)([^>]*>.*?)(<\/P>)', 'gi' ) ; // Different because of a IE 5.0 error
//html = html.replace( re, '<div$2<\/div>' ) ;
works for me
jc
Re: Paste from word paragraphs
Seems that you are using an old version because currently those lines are at line 293, and as explained in http://docs.fckeditor.net/FCKeditor_2.x ... sStructure you can see that it's wrapped in an if (FCKConfig.CleanWordKeepsStructure) so, you can avoid that conversion just changing the configuration (of course, using an updated version, although that change was introduced long ago)