.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Remove Word Style once copy and paste content to Rich text Editor in sharepoint 2010

Posted By:      Posted Date: September 04, 2010    Points: 0   Category :SharePoint
Hi Guys, I have page layout for Users to add content for Page.I have site column for page content on field type HTML with Richtextmode="FUll Html". Now when user cut and paste content from Word document in this Field it carry word document style. how can i control this content on Page layout with CSS. Please adviseThanks Ron

View Complete Post

More Related Resource Links

restrict rich text box to certain fonts and colours in content editor web part - Sharepoint 2010 -




Just wondering if anyone knows a way to make only certain fonts and colours available to rich text box in the content editor web part?

also is there a way to make only certain features available in the rich text box, ie only let the users change font, but not let them use bullet points etc.




SharePoint 2010 Rich Text Editor field

I want to embed iframe tag in Sharepoint 2010 rich html text editor control, but it is simply remove the tags when i save the content. Please let me know how can i do this?

Customize Rich Text Editor in SharePoint 2010


I tried to customize the Rich Text Editor (HTML Editor, Content Editor) in SharePoint 2010. How can I replace the default styles with my own styles in the following Dropdowns of the editor:

  • Fonts
  • Styles
  • Markup Styles
  • Tabel

 I tried also the PrefixStyleSheet-Property but I don't figured out the correct style definition - the Dropdows were empty.

<PublishingWebControls:RichHtmlField id="Content" FieldName="PublishingPageContent" runat="server" PrefixStyleSheet="PageContentStyle"/>

I found some informations but nothing works.

Assembling Documents on SharePoint 2010 Sites by Merging Content from Excel, PowerPoint, and Word

This article describes a rich document assembly solution that takes Word 2010 documents, Excel 2010 documents, and PowerPoint 2010 documents and merges them together to form a final report in Word. It does all of this from a SharePoint 2010 Web Part.

How can I add a SharePoint Rich text editor in my custom application page?


I want to have a richtext editor in my custom application page.

Can I use the richtext editor  bulit-in in SharePoint?

I tried add this code in my aspx but it doesn't render the control but throw a error

<SharePoint:RichTextField ID="DefaultValue" runat="server" ControlMode="New" FieldName="Title"></SharePoint:RichTextField>

Anyone helps?

Table Copy Paste Fuctionality issue in Rich Text Box


Hello Team,

I'm working with Rich Text Box in WPF. When I'm trying to Copy a table from MS Word (which does not have borders) and Paste it on Rich text box it looses it's formatting. Instead of table two lines are comming.

Steps to Produce :

1. Open a Ms Word Document and Insert a table(Say 4x4).

2. Apply Design for that table-any  Light Shading - Accent 5 or Accent 4...

3. Copy the table and Paste it on RichTextBox.

Observe the result. It's giving two lines instead of Table which I've copied

This is Urgent requirement for me. Please, Give a solution for this problem


Employee Training Export event and remove rich text editor

I have couple of problems with employee training template.

There is an export event on this template to your calendar. You can click on this button ( export event) and you can save this ics file on to your outlook calendar. Can I anyhow change the text of this "export event" text to something else. I went to sharepoint desinger and it doesnt even have export event listed there.. just dll.. and when I do view source on the page i see under HTML.. but How can i change this?


When someone is trying to add a new course we would like to users to not have capibility of changing fonts/ etc.. When you enter course desciption rich text editor gets enabled... on top. Is tehre a way to disable this for this template or specific sites?

Please help

Thank you

Save text box content as a text file in sharepoint 2010 document library


I am a sharepoint developer and currently I am trying to save content of a text box from client side in document library in share point 2010. I have created a sandbox solution for this. I explored the SP2010 client side object model for ECMA script, however I was not able to crack the problem.

I have created the byte array from the text box content and now I want to save it as a text file in the document library using ECMA script.

Kindly suggest how can I achieve that.

can we use classic asp code in sharepoint 2010 content editor or in _layouts?


can we use and execute classic asp code in sharepoint 2010 content editor or in _layouts?

We have lots of code in old classic asp which we do not want to recode but just put those pages in _layouts in sharepoint server and execute them somehow. is it possible? We do not want to keep old server where asp code is running now.

Background on html/rich text editor in content editor web part?


Hi All,

Does anyone know what in the CSS controls the background of the rich text/html editor in the Content Editor Web Part?  Mine is picking up the background of my page layout so I must have accidentally changed it somewhere, I'm just not sure where...


New Content on Excel Services and Word Automation Services Development for SharePoint Server 2010 (B

Check out the new visual how-to videos and articles that showcase how to create interactive solutions around Excel Services in SharePoint 2010, as well as book excerpts for Excel Services and Word Automation Services.

Content Query Web Part missing in SharePoint 2010

If you don't see content query web part listed in the web parts list, this is because you have not enabled "Search Server Web Parts" feature in site collection features. Enable this feature and content query web part will show in the list of web parts.

Office Services: Merging Word Documents on the Server Side with SharePoint 2010


Office 2010 and SharePoint 2010 include a new set of components called Application Services. These put a rich set of tools in a developer's bag for Office automation. We'll show you how to use Office OpenXML, Word Automation Services and SharePoint to build a simple application that merges separate status reports into a single document.

Manvir Singh, Ankush Bhatia

MSDN Magazine July 2010

rich text editor



I need to implement one text editor in my application. I dont need a complex one, i just need a simple one.

please help me


How to use display Text in Hyperlink For SharePoint 2010 Designer Workflow


In SharePoint 2007 Designer, I have used the Hyperlink column to store the link "http://www.sharepoint.com/Default.aspx, Details". The details text will be shown in the Hyperlink column. Everything works fine in sharepoint 2007 Designer workflow.

In SharePoint Designer 2010 Workflow, I used the same method but the hyperlink column is displaying the full text "http://www.sharepoint.com/Default.aspx, Details" instead of only Details


Javascript error on Rich Text Editor of CEWP

Hi all,

I have a problem that is really bugging and I wasn't able to find any workaround all day. I'll try to give as many details as possible:

I'm maintaining several site collections on a single server and this problem occurs only on one of the site collections. However it occurs on all subsites of this collection, it occurs on old pages and newly created pages, even on pages containing only one empty CEWP.

When I'm pressing the button for Rich Text Editor of CEWP I get the following error:

Message: Invalid argument.
Line: 5740
Char: 2
Code: 0
URI: http://www.dyrlaegeankenaevn.dk/_layouts/1030/HtmlEditor.js

I've tracked down the error with IE developer tools and I found that the error pops up in HtmlEditor.js at

function RTE2_GenerateLaunchArguments(parameterArray, webUrl, containerID)
    ............some code goes here......................
    ............some code goes here......................

I followed containerID down the stack and it comes from:

SharePoint 2010 Enterprise Content Management Resource Center - NEW!

Find developer resources for using the comprehensive ECM object model to manage documents, records, managed metadata, rich media assets, and web content.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend