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

[Solved] Needed: 1px wide border around RadEditor

1 Answer 80 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 13 Jun 2008, 01:47 PM
Hi,
I'd asked this before but the solution did not work (completely).

I need to reduce the border width to 1px around the RadEditor.
I've almost got it working by hiding he TR's via javascript on OnClientLoad
however my issue is that the Toolbar offsetwidth (toolbarmode=OnSetFocus) when you click on the RadEditor defauts to 10px. 

Can initialize the Toolbar or set it's width in the OnClientLoad JS code?


My RadEditor.OnClientLoad() event handler code

editor.get_element().children[1].children[0].children[0].style.display=

'none';

editor.get_element().children[1].children[0].children[1].style.display=

'none';

editor.get_element().children[1].children[0].children[3].style.display=

'none';

editor.get_element().children[1].children[0].children[4].style.display=

'none';

editor.get_element().children[1].children[0].children[5].style.display=

'none';

editor.get_element().children[1].children[0].children[2].style.height=editor.get_element().style.height;

editor.get_element().children[1].children[0].children[2].children[0].children[1].style.height=(editor.get_element().offsetHeight-1) +

ditor.get_element().offsetHeight-1) +

"px";

1 Answer, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 17 Jun 2008, 08:53 AM
Hi,

In the current inhouse build we have made some changes to the top editor tool area (which is empty) when the toolbarmode = ShowOnFocus.

We suggest that you wait two more days, when the Q1 2008 SP2 release will be out (this Thursday). Please give it a try, we believe that the margin will be much less than 10px. In case the result is not as expected, my suggestion is to open a support ticket and send us a sample - we will modify your code so that the margin is 1px only - and send it back to you.


All the best,
Tervel
the Telerik team

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