We updated to Vancouver and now when I edit a KB, extra junk html is added into the Source Code.

trout1974
Kilo Guru

When I put a hard space (hold shift down and press Enter) extra html is added into the source code. I like to keep the source code clean, because we do manage the html, so we use html and the gui side of SN to create kbs. We use the hard space between each step when writing out steps in articles, and we use a hard space above and below images. So we have tons of junk html with each hard space we use.
I have worked at other companies in Vancouver and never had this issue. 
SN says it is an issue with the TinyMCE Library and refused to fix the issue, and pretty much told me it can't be fixed. In my opinion, this is not how a company should support their customers, close their ticket and not resolve the issue. 
I have attached an image of the source code and highlighted the junk that was added when I put in the hard spaces. 
If anyone has any information or advise, I greatly appreciate it. Thanks in advance.

26 REPLIES 26

Tom_T
Tera Contributor

There is no difference... just use a simple text editor. Notepad is perfectly fine. The main reason to copy and paste from word and then back is to get rid of all formatting.

Dr Evil
Tera Contributor

I want to add that ServiceNow finally recognized this as a problem and forwarded this compliant to TinyMCE to investigate. 

celebrycikl
Mega Contributor

Yeah, this is super annoying. SN saying it's a TinyMCE issue and refusing to fix it is frustrating, especially when it clutters the HTML with junk. I’ve run into the same thing and unfortunately, it seems like there's no easy fix unless SN decides to address it. Best bet might be to manually clean up the HTML if you really need it clean. If anyone else has a workaround, I'd love to hear it too.

I agree it is a TinyMCE issue most likely. The code says "sn-tinymce" may be specific to their (SNOW version) editor implementation. It just makes it very difficult and time consuming to clean up just to read the HTML. I'm currently working with SN and engineering, I'll update here if I find anything out or able to make headway.  

check out this website for more info maybe you'll find a solution