It's rather difficult to get this right since the final line break might be required for properly keeping the formatting of the pasted text (and the one already there) - which you might want or not want depending on everyone's preferences or the origin of the pasted text: What I've taken care of is that text clipped from within a single line inside the editor will not have a line break attached (unless deliberately included), but as soon as it includes a whole line or an already existing line break there will be one. The same is true for HTML text from external sources: Although you don't see it there's always some hidden space and possible a line break attached after conversion to the Rich Text format which the editor works with, so how's IER supposed to tell whether it should strip it or not when inserting it? There simply isn't a proper way to tell from what's on the clipboard, I can do some more testing, but not make any promises, suggestions welcome: Maybe keeping a blank whould be enough with regard to the formatting (which includes not only fonts but also text color (except for white), BTW).
It's rather difficult to get this right since the final line break might be required for properly keeping the formatting of the pasted text (and the one already there) - which you might want or not want depending on everyone's preferences or the origin of the pasted text: What I've taken care of is that text clipped from within a single line _inside the editor_ will _not_ have a line break attached (unless deliberately included), but as soon as it includes a whole line or an already existing line break there will be one. The same is true for HTML text from external sources: Although you don't see it there's always some hidden space and possible a line break attached after conversion to the Rich Text format which the editor works with, so how's IER supposed to tell whether it should strip it or not when inserting it? There simply isn't a proper way to tell from what's on the clipboard, I can do some more testing, but not make any promises, suggestions welcome: Maybe keeping a blank whould be enough with regard to the formatting (which includes not only fonts but also text color (except for white), BTW).
Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C