Image borders missing in Knowledge articles

ahamann
Tera Contributor

Hi all, 

 

I am currently in Tokyo. In the previous version, the WYSISWYG editing tool for images gave the option to add a border to an image. This is no longer the case: 

ahamann_0-1676573671659.png

 

Even if I add the border using html "border=", the border will appear while the image is in the editor, but disappears after I click "View article" and not appear in the published article.

ahamann_1-1676573772331.png

 

(Note: I've tried a couple different versions of border formatting. Also tried just "border= 2px solid #555", for example.)
Is this something that will be fixed in U? Is anyone else experiencing this issue? And is there a way around it?

 

4 REPLIES 4

SatyakiBose
Mega Sage

Hi @ahamann 

I have faced the same issue on my PDI.

Although I have a question. This border that you are referring to, are you not able to see when you are editing/adding content to the editor, or when the text is published.

For ex - Lets consider the case of KB creation. Are you facing the issue with border when adding content to the editor, or is the border not visible even when the article is published.

 

You might want to raise a Hi support case and get a confirmation from ServiceNow support if this is expected or a product bug.

Lucas Vieites
Tera Guru

Hi there,

have you tried using the Advanced tab in the dialog?

tinymce_image_advanced_dialog.png

When using the UI to select border features, the CSS is filled in automatically.

 

If it still removes the styling when saving, check with your instance admin to see if they are filtering the HTML input somehow, perhaps with the HTML sanitizer.

 

Kind regards,
Lucas Vieites
P.S. If my reply helped you, please mark it as helpful or correct so other community members can benefit from this information.

mesato
Giga Contributor

We are having the same issue as described after implementing SN Tokyo. Setting the border using the advanced option still results in the same issue where the border styling will be correctly displayed in WYSIWYG but not in the portal preview or the published versions. 

mesato
Giga Contributor

Turns out that, unlike in MS Office apps, SN does not apply a default border width value even though the preview may imply one is (the border effect will show even if the border width value field is left empty).