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

Editor is changing the font name automatically

6 Answers 139 Views
Editor
This is a migrated thread and some comments may be shown as answers.
kartik
Top achievements
Rank 1
kartik asked on 04 Jan 2016, 11:43 AM

Hi,

When i paste text from MS word (Times New roman, 12 pt) in to the editor, the editor is changing the font name to 'Segoe UI' for some part of the text automatically. This issue is with only some of the word documents i have. I am not able to attach the same word document with this thread as there is no option to attach word format but i have tested it on http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx link and the same issue exists.

6 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 05 Jan 2016, 02:53 PM
Hi Kartik,

I suspect Times New Roman font is the default font-family for the document used. When content from MS Word is being pasted, the transferred data has no information about the default font-family that is used in MS Word. Therefore, it does not apply one in the pasted HTML content. 

The applied font in such case is the default for the browser or, the page's default font size. The demo page have Segoe UI font as default and this is the default font-family that is applied and shown in RadEditor. 


As for attaching an MS Word file, you can just add it to a zip archive and attach the zip file to your message. 

Regards,
Ianko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
kartik
Top achievements
Rank 1
answered on 05 Jan 2016, 03:47 PM
Hi Lanko,

Thanks a lot for the response.

As i strictly need the text with font name 'Time New Roman', i tried the following  steps:
1. Copied all the text to new word document whose default font-family was 'Calibri'. The font - family changed to 'Time New Roman' (font family of original text) correctly.

2. Saved the new word document.

3. Copied the text from the new word document to the Telerik Editor and checked the same issue and it got generated again.

Again, only .gif, .jpg, .jpeg and .png extensions are allowed to be attached. Not able to attach .doc/.docx or .zip extensions.
0
Ianko
Telerik team
answered on 06 Jan 2016, 07:54 AM
Hello Kartik,

I tested the same locally—pasting text with Times New Roman font—, but to no avail. The text is pasted with the correct font. You can see that in this screencast—http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx.

As for sharing the file. You can try using a free cloud service to provide the file, like Dropbox, OneDrive, etc.

Regards,
Ianko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Ianko
Telerik team
answered on 06 Jan 2016, 07:56 AM
Hi,

Sorry for the wrong link. Here you are the screencast—http://screencast.com/t/kcOJcmYNI.

Regards,
Ianko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
kartik
Top achievements
Rank 1
answered on 06 Jan 2016, 10:10 AM

Hi Linko,
Thanks for the response.

I agree this is working fine in normal scenario but i am having trouble with few documents.
Please check this Test Document to generate this issue. Font family of first line of the document is getting changed.

 

 

 

0
Ianko
Telerik team
answered on 06 Jan 2016, 12:54 PM
Hi,

It seems to me that the Styles repository of this document is quite messed up. Check out this screencast to see how you can possibly resolve this—http://screencast.com/t/rJNrXfDITa.

You can also compare with the styles from a new document.

Regards,
Ianko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Editor
Asked by
kartik
Top achievements
Rank 1
Answers by
Ianko
Telerik team
kartik
Top achievements
Rank 1
Share this question
or