Pasting From MS-Word into any Browser-based HTML Editor?

Recently I was looking for similar thing after bit of googling I found a nice function. It has most of the bad tags listed. Here is the link which contains that function.

Recently I was looking for similar thing after bit of googling I found a nice function. It has most of the bad tags listed. Here is the link which contains that function: 1stclassmedia.co.uk/developers/clean-ms-... all credits to original author.

Not a bad start. Will see what others have to say, but helped a bit, so gave you an up-vote. – OneNerd May 3 at 19:10.

Tinymce has a flag for this when pasting. You should have a look at the past_preprocess setting of the paste plugin. Here you can access the pasted content using 'o' and find out if the paste came from Word.

Example: paste_preprocess : function(pl, o) { //if(console) console. Log('content', o); if (o. WordContent ) { alert('paste from WORD detected!'); } ... }, I am using a special function to get rid of unwanted tags (i was not that happy about the default way tinymce handles this - so I wrote my own).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions