The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Embedding video into knowledge articles

saj4
Kilo Expert

Hi, I'm trying to embed a video (shockwave flash) into a knowledge article.

I have imported the video into ServiceNow (System UI > Videos) and it plays fine.

The knowledge articles allow videos to be embedded via 'insert/edit' video option. I am able to select and embed the video (its shows as a grey image) but upon saving the article and then trying to view the article or re-edit it, the video is nowhere to be seen or found.

Am using latest Fuji release and tried both firefix and chrome browsers.

Has anyone been able to successfully embed videos into knowledge arcticles or advise if I need to do anything additional? Thx.

1 ACCEPTED SOLUTION

Video not working in the HTML field on Knowledge is almost certainly down to HTML Sanitize being on on that field. I had the same issue. Video worked, saved the record and then it just isn't there.



The HTML Sanitizer property can be disabled either globally or on a a field by field basis. By default it's enabled and causes the issue you are seeing.



see:



HTML Sanitizer - ServiceNow Wiki



Hope that fixes your issue.


View solution in original post

16 REPLIES 16

Blaze2
Kilo Guru

This might help someone



Navigate to the HTML Sanitizer.
Replace the HTML_WHITELIST Object with



HTML_WHITELIST : {


  globalAttributes: {


  attribute:[],


  attributeValuePattern:{}


  },


  video:{


  attribute:["controls","width","height"],


  },


  source:{


  attribute:["src"],


  },




},




Go to the Knowledge article that you want to embed the video in and follow these steps:


1. Save the video to your desktop


2. Navigate to or Create a new KB Article


3. Attach the video to the article


4. Once the article is attached make the attachment visible on the article so you can copy link to the attachment.


5. Copy the URL for the video attachment on the article.


6. Go back into Edit mode and use the <> HTML source view


6. Add the HMTL below in the HTML source view


<video width="800" height="480" controls="controls">


<source src="insert video's thml">


</video>






7. Click OK and then Save/View the article



Go to the Knowledge article that you want to embed the video in and follow these steps:


1. Save the video to your desktop


2. Navigate to or Create a new KB Article


3. Attach the video to the article


4. Once the article is attached make the attachment visible on the article so you can copy link to the attachment.


5. Copy the URL for the video attachment on the article.


6. Go back into Edit mode and use the <> HTML source view


6. Add the HMTL below in the HTML source view


<video width="800" height="480" controls="controls">


<source src="insert video's thml">


</video>




7. Click OK and then Save/View the article