RadEditor - Disable paste from word?

2 posts, 0 answers
  1. pmwhelan
    pmwhelan avatar
    104 posts
    Member since:
    Apr 2007

    Posted 10 Mar 2009 Link to this post

    I've a RadEditor on a page and I wish to allow users to paste from word but for all formatting to be removed.
    I try this within the radeditor control




    but when I right click on the radeditor it says
    Paste From Word
    Paste Plain Text
    Paste As Html

    I only want to be able to paste the text and the formatting from word to be removed.

    How do I disable the other options "Paste From Word, Paste Plain Text, Paste As Html"

  2. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 13 Mar 2009 Link to this post

    Hello pmwhelan,

    You can edit the context menus' collection by using the Visual Studio's design time property grid or by manually adding the code to your RadEditor declaration.
    For example:
    <telerik:RadEditor ID="RadEditor1" runat="server">  
            <telerik:EditorContextMenu TagName="*">  
                <telerik:EditorTool Name="Cut" /> 
                <telerik:EditorTool Name="Copy" /> 
                <telerik:EditorTool Name="Paste" /> 

    More information on the subject is available in the documentation.

    Kind regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top