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

[Solved] Preview Mode Functionality

1 Answer 113 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Brian Doner
Top achievements
Rank 1
Brian Doner asked on 12 Jun 2009, 08:06 PM
Hi, I don't understand the purpose of the preview mode. I had thought that if I were zoomed in and then went to preview mode, it would show me the display at 100%, without effecting my current zoom setting. All it ever really seems to do is disable the editor controls and remove table borders if there are any tables, and show everything else exactly the same. Am I missing something?
Thanks!

1 Answer, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 17 Jun 2009, 07:43 AM
Hi Brian,

To some extent your observation are correct - "by default" the editor does not do much more than what you have noticed. But, if needed, beneath the hood, the editor allows you to extend this behavior in a number of ways.

When *edit* table borders are hidden, in fact what happens is that the ContentAreaCssFile gets disabled. Now that IE7/IE8 are finally common, and IE6 is on the decline, this opens the door for visually more enhanced edit mode. For example, using CSS one can make visible elements such as anchors (<A name="sth"/>)., or (beginning of) P tags can be marked with an arrow.

Switching the modes also raises an event - OnClientModeChange - which allows the developer who has special requirements to execute code accordingly.

Certainly, if you need neither of those, and you wish to get rid of the preview mode you can easily do that by setting EditModes = "Design, Html", as described in the following demo:
http://demos.telerik.com/aspnet-ajax/editor/examples/editmodes/defaultcs.aspx

Best wishes,
Tervel
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
Brian Doner
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Share this question
or