I have a radeditor control with the RealFontSize dropdown
There are only 2 values available 24pt and 18pt
However, what is displaying in the text of the closed dropdown is either 32px or 24px. (See attached image). The client is distressed because the display is showing pixels and not points. How do I get the closed dropdown to show the actual value of either 24 or 18 pt?
The client area content returned to the sever has the value in points.
function OnClientLoad2(editor, args) {
var style = editor.get_contentArea().style;
style.color = '#636466';
}
<telerik:RadEditor ID="RadEditor2" runat="server" Height="75px" Width="100%" StripFormattingOnPaste="MSWord, MSWordNoFonts, MSWordRemoveAll, Css, Font, Span"
StripFormattingOptions="MSWord, MSWordNoFonts, MSWordRemoveAll, Css, Font, Span" OnClientLoad="OnClientLoad2"
Skin="Default" EditModes="Design">
<RealFontSizes>
<telerik:EditorRealFontSize Value="24pt" />
<telerik:EditorRealFontSize Value="18pt" />
</RealFontSizes>
<Tools>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="Save" Text="Save" />
<telerik:EditorTool Name="Cancel" Text="Cancel" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="Cut" />
<telerik:EditorTool Name="Copy" />
<telerik:EditorTool Name="Paste" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="Undo" />
<telerik:EditorTool Name="Redo" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="InsertSymbol" />
</telerik:EditorToolGroup>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="RealFontSize" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="JustifyLeft" />
<telerik:EditorTool Name="JustifyRight" />
<telerik:EditorTool Name="JustifyCenter" />
<telerik:EditorTool Name="JustifyNone" />
</telerik:EditorToolGroup>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="AjaxSpellCheck" Text="Spell Check" />
<telerik:EditorTool Name="ResetContent" Text="Clear"/>
</telerik:EditorToolGroup>
</Tools>
<Content>
</Content></telerik:RadEditor>
There are only 2 values available 24pt and 18pt
However, what is displaying in the text of the closed dropdown is either 32px or 24px. (See attached image). The client is distressed because the display is showing pixels and not points. How do I get the closed dropdown to show the actual value of either 24 or 18 pt?
The client area content returned to the sever has the value in points.
function OnClientLoad2(editor, args) {
var style = editor.get_contentArea().style;
style.color = '#636466';
}
<telerik:RadEditor ID="RadEditor2" runat="server" Height="75px" Width="100%" StripFormattingOnPaste="MSWord, MSWordNoFonts, MSWordRemoveAll, Css, Font, Span"
StripFormattingOptions="MSWord, MSWordNoFonts, MSWordRemoveAll, Css, Font, Span" OnClientLoad="OnClientLoad2"
Skin="Default" EditModes="Design">
<RealFontSizes>
<telerik:EditorRealFontSize Value="24pt" />
<telerik:EditorRealFontSize Value="18pt" />
</RealFontSizes>
<Tools>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="Save" Text="Save" />
<telerik:EditorTool Name="Cancel" Text="Cancel" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="Cut" />
<telerik:EditorTool Name="Copy" />
<telerik:EditorTool Name="Paste" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="Undo" />
<telerik:EditorTool Name="Redo" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="InsertSymbol" />
</telerik:EditorToolGroup>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="RealFontSize" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="JustifyLeft" />
<telerik:EditorTool Name="JustifyRight" />
<telerik:EditorTool Name="JustifyCenter" />
<telerik:EditorTool Name="JustifyNone" />
</telerik:EditorToolGroup>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="AjaxSpellCheck" Text="Spell Check" />
<telerik:EditorTool Name="ResetContent" Text="Clear"/>
</telerik:EditorToolGroup>
</Tools>
<Content>
</Content></telerik:RadEditor>