Pasting images into Knowledge Articles from Word

nelsonsilva
Giga Contributor

I am facing an issue that I don't understand and massively slows down my process.

Previously when copying images from Word and pasting it into a KA, the image would retain whatever size it had in Word, they now auto resize.

An image that, in Word, is natively 500x390 pixels, when copied and pasted into the KA, turns into a 783x608 pixels. To fix I have to manually change the pasted image size. My KAs vastly depend on screenshots, it's very time comsuming.

Any suggestions?

 

Example:

Original is 400x400, the pasted image is 500x500

nelsonsilva_1-1750759764615.png

 

 

 

3 REPLIES 3

yella123
Tera Expert

@nelsonsilva 

Paste via Screenshot Tool Instead

Use a tool like Snipping Tool

Take the screenshot at the desired resolution.

Paste directly into the KA editor (or upload if needed).

These tools preserve the actual image dimensions better than copying from Word.

 

Chaitanya ILCR
Kilo Patron

Hi @nelsonsilva ,

 

ServiceNow uses TinyMCE editor for HTML fields

there is a difference between word's sizes and TinyMCE size units

 

we had raised a HI case last year this is the response we've got 

 

The TinyMCE is showing the different sizes between px and pt. when importing the docs file, the pt becomes px.

When editing in TinyMCE, the default font sizes from the dropdown are 7pt 7.5pt 8pt 10pt 12pt 14pt 18pt 24pt 36pt

However, some of those values are related to pixel size.
8pt = 11px
10pt = 13px
12pt = 16px
18pt = 24px
36pt = 48px

So if the font size is 11px, it will show up as 8pt in the TinyMCE Editor. However, if the px does not have a corresponding PT size, it shows up as 'px' in the TinyMCE dropdown editor.
This is working as expected.

 

when importing a docx file, all the pt sizes are converted to px. If you look at the html, you can see that the size is in px. However, in the tinyMCE editor, in the text size drop down, it is showing a mismatch between pt and px. If the px size matches a pt size, it will show the pt size in the editor, however, the html will still show as px. So if the size is set to 18px, it will show as 14pt in the tinyMCE editor. If the author edits the document after, the size of that edited font will be what was in the tinyMCE dropdown at the time.

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

The thing is, I had no issues until about a month ago, I was able to copy the images from word to the KA without it resizing, if this was an issue last year I don't know why it took so long to affect me.