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

[Solved] Is there a "Show blocks" option?

4 Answers 155 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 29 Jul 2009, 09:40 PM
Hi,

is there a "Show blocks" option in Editor as in FCKEditor? I can only find "Show table borders", but this does not show border of e.g. DIV or P.

Regards
Daniel

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 30 Jul 2009, 11:28 AM
Hi Daniel,

You can achieve this feature by setting the ContentAreaCssFile property of RadEditor to point to some css file, e.g.

<telerik:radeditor runat="server" ID="RadEditor1" ContentAreaCssFile="~/contentArea.css"></telerik:radeditor>

and set a global css class for every element that you want to be displayed with a border in the editor's content area, e.g.

div, p
{
    border: 1px dashed red;
}

Save the css file.

All the best,
Rumen
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.
0
Daniel
Top achievements
Rank 1
answered on 30 Jul 2009, 07:56 PM
OK, but with this, the end-user has not an option to switch this on and off as table borders! Is it possible to customize the script or whatever the "show table border" button raised?

Regards
Daniel
0
Accepted
Rumen
Telerik team
answered on 31 Jul 2009, 01:24 PM
Hi Daniel,

The end user has the option to switch the borders on and off using the Show / Hide Border button. You can see the attached screenshot for more information.

For your convenience I have also attached my test project.

Greetings,
Rumen
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.
0
Daniel
Top achievements
Rank 1
answered on 05 Aug 2009, 07:59 PM
That do the trick!
Thanks
Tags
Editor
Asked by
Daniel
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or