This is a migrated thread and some comments may be shown as answers.

RadEditor - Disable paste from word?

1 Answer 221 Views
Editor
This is a migrated thread and some comments may be shown as answers.
pmwhelan
Top achievements
Rank 1
pmwhelan asked on 10 Mar 2009, 03:08 PM
Hi
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

 

StripFormattingOnPaste="MSWordRemoveAll"

 


but when I right click on the radeditor it says
Paste
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"

Thanks
P

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 13 Mar 2009, 07:18 AM
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">  
    <Content> 
    </Content> 
    <ContextMenus> 
        <telerik:EditorContextMenu TagName="*">  
            <telerik:EditorTool Name="Cut" /> 
            <telerik:EditorTool Name="Copy" /> 
            <telerik:EditorTool Name="Paste" /> 
        </telerik:EditorContextMenu> 
    </ContextMenus> 
</telerik:RadEditor> 

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.
Tags
Editor
Asked by
pmwhelan
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or