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

Printing

1 Answer 27 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 2
Jim asked on 15 Jul 2008, 04:26 PM
How can I print the current text of the editor, when in preview mode or when editor enabled set to false.

Thanks,
Jim

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 16 Jul 2008, 06:53 AM
Hi Jim,

You can print the content in Preview mode with the following code:

<telerik:radeditor runat="server" ID="RadEditor1" EditModes="Preview"> 
<Content>
    test<b>test</b>test
</Content>
</telerik:radeditor>
<input type="button" onclick="Print();return false;" value="Print" />
<script type="text/javascript">
function Print()
{
    var editor = $find('<%=RadEditor1.ClientID %>');
    editor.fire("Print");
}
</script>

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Jim
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Share this question
or