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

RealFontSize Displaying PX not PT

1 Answer 73 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Brete
Top achievements
Rank 1
Brete asked on 19 Jan 2015, 04:35 PM
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>








1 Answer, 1 is accepted

Sort by
0
Brete
Top achievements
Rank 1
answered on 19 Jan 2015, 05:47 PM
I used the appoach outlined in this post and is displaying what i want now.   

http://www.telerik.com/forums/rad-editor-font-size-problem
Tags
Editor
Asked by
Brete
Top achievements
Rank 1
Answers by
Brete
Top achievements
Rank 1
Share this question
or