Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Remove Styles while copying from other document - SharePoint editor

$
0
0

We know there is a sharepoint content editor webpart. I have inserted it on my page. When my user copy & paste some content from word pad or some other stuff, i want to remove the font-size&color and paste only the text. I have tried it by javascript. Whenever they press ctrl+v i just read all the html elements and remove the styles. It worked well.

But the problem i am facing is, user can manually format their content by selecting color, size from the webpart itself. So that styles also gets removed.

So the only place i can remove styles is at the time of pasting only. I don't know whether content editor webpart has the functionality.

Any suggestion?


Thanks, Saravanan PRS


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>