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

[Solved] Font Size Drop Down Problem

3 Answers 138 Views
Editor
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 03 Jan 2008, 06:05 PM

Just installed the prometheus editor and works great, except that the size drop down, now just shows up as S... when the contents are blank, how do I set that to a number or make it wide enough to its not just an S...?

3 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 04 Jan 2008, 11:06 AM
Hi,

I think that the S... text in the dropdown should be automatically updated with the correct font size once you click inside the editor content area. Does this happen when in your case?

Best wishes,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
John
Top achievements
Rank 1
answered on 04 Jan 2008, 04:25 PM
It works like you say, but I'm talking about the S... I would like that to be wide enough so it actually says Size instead of S... i have two text editors that I'm using, one has S... and the other I think says Siz. because they have different tool bars for the different editors.  Is there a setting or something I can do to make the S... wider to say Size?
0
Lini
Telerik team
answered on 04 Jan 2008, 05:24 PM
Hi John,

I don't think that there is a documented way to set the dropdown width from the code. You can use the following code to set the width manually on the server :

RadEditor1.FindTool("FontSize").Attributes["width"] = "100";

(where RadEditor1 is your editor instance)

Unfortunately, the above code will produce a client-side error if you are running the web site in debug mode. If you set 

<compilation debug="false">

in the web.config file the code should work OK. As I said this is an undocumented approach and it can be changed in the future.

All the best,
Lini
the Telerik team

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