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

Setting Default fond as Segoe UI when using PasteFromWordNoFontsNoSizes

1 Answer 296 Views
Editor
This is a migrated thread and some comments may be shown as answers.
parimal
Top achievements
Rank 1
parimal asked on 23 Jul 2008, 01:51 AM
Hi,

I have a rad editor where i have set the default font as Segoe UI in the CSS file and removed the FontName from Tools XML file. We are also using PasteFromWordNoFontsNoSizes button of the editor. We observed that when we copy some text of different fonts say Segoe UI and use this button, the text after copy gets default font of Times Roman.

How to get the default font as Segoe UI when using PasteFromWordNoFontsNoSizes button.

regards,
Parimal

Editor Code  
----------------------------------------------------  
<telerik:RadEditor ID="reReviewThreshold" runat="server"   
                                                    Width="99%" 
                                                    Height="150px" ToolsFile="~/XMLFiles/RadEditorToolBar.xml" 
                                                    ToolbarMode="ShowOnFocus" EditModes="Design,Preview" EnableResize="false" > 
                                                    <Tools> 
                                                    <telerik:EditorToolGroup> 
                                                    <telerik:EditorTool Name="PasteFromWordNoFontsNoSizes" /> 
 
                                                    </telerik:EditorToolGroup> 
                                                    </Tools> 
                                                    <CssFiles> 
                                                        <telerik:EditorCssFile Value="~/stylesheets/RadEditor.CSS" /> 
                                                    </CssFiles> 
                                                </telerik:RadEditor> 
-----------------------------------------------------------------------------  
XML File  
-------------------------  
<?xml version="1.0" encoding="utf-8" ?> 
<root> 
    <tools> 
        <tool name="Bold"/>  
        <tool name="Italic"/>  
        <tool name="Underline"/>  
        <tool separator="true"/>  
        <tool name="InsertOrderedList"/>  
        <tool name="InsertUnorderedList"/>  
        <tool separator="true"/>  
        <tool name="FontSize"/>  
        <tool name="ForeColor"/>  
        <tool name="BackColor"/>  
        <tool separator="true"/>  
          
    </tools> 
 </root> 
------------------------------------------------------------------------  
CSS Code  
------------------  
body     
{     
    color: black;     
    font-size: 12px;      
    font-family:Segoe UI;      
}    
 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 29 Jul 2008, 01:19 PM
Hi Parimal,

Are there any font name tags or inline styles that set different font formatting to the pasted content?

Could you please, open a support ticket and send a sample word document for test? I will try to replicate your scenario on my side and try to provide a solution.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
parimal
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or