Hi,
I have 2 problems:
1. Setting realfontsize codebehind not working, I just get pixels from 8-72 when viewing the page.
2. The Width property of EditorTool is not valid codebehind, but works when setting in designmode.
I have 2 problems:
1. Setting realfontsize codebehind not working, I just get pixels from 8-72 when viewing the page.
2. The Width property of EditorTool is not valid codebehind, but works when setting in designmode.
| RadEditor newEditor = new RadEditor(); |
| newEditor.Skin = "Gray"; |
| newEditor.EnableEmbeddedSkins = false; |
| newEditor.EnableEmbeddedBaseStylesheet = false; |
| newEditor.Tools.AddRange(getTools()); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("1.7em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("1.5em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("1.3em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("1.1em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("1.0em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("0.9em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("0.8em")); |
| ... |
| private IEnumerable<EditorToolGroup> getTools() |
| { |
| IList<EditorToolGroup> toolGroups = new List<EditorToolGroup>(); |
| EditorToolGroup toolGroup = new EditorToolGroup(); |
| EditorTool groupItem; |
| groupItem = new EditorTool(); |
| groupItem.Name = "RealFontSize"; |
| groupItem.Text="Storlek"; |
| //groupItem.Width = "60px"; |
| toolGroup.Tools.Add(groupItem); |
| ... |
| toolGroups.Add(toolGroup); |
| return toolGroups.AsEnumerable(); |
| } |
