RadEditor - disable content area editing

2 posts, 0 answers
  1. Sid
    Sid avatar
    1 posts
    Member since:
    Jun 2013

    Posted 14 Aug 2013 Link to this post

    Hi all,

    I have implemented a simple RadEditor on the page, where I want to display the contents within the RadEditor and a Print button on the top, to print the contents. I want to disable the content area specifically, so that users cannot make any changes to the populated text, but can still print. 
    Here is the code:

    <telerik:RadEditor ID="red1" runat="server" EnableResize="false" Width="100%" EditModes="Design" AutoResizeHeight="true" EmptyMessage="No notes">
    <Tools>
        <telerik:EditorToolGroup>
            <telerik:EditorTool Name="Print" />
        </telerik:EditorToolGroup>
    </Tools>
    </telerik:RadEditor>

    If I change the EditModes to Preview, then the Print toolbar button gets disabled as well, which I dont want. 
  2. Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 16 Aug 2013 Link to this post

    Hello,

    You can load the editor in Preview mode (EditModes="Preview") and enable the Print button using the solution in this article: Enable Print button in Preview Mode.

    Regards,
    Rumen
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top