Paste formatting options popup that appears while trying to paste content in to HTML fields (Ex: Text field on knowledge form). This popup gives an option to 'Keep formatting' or 'Remove formatting' to the user while pasting content. This could get a

Sri67
Kilo Explorer

Hello,

 

Paste formatting options popup that appears while trying to paste content in to HTML fields (Ex: Text field on knowledge form). This popup gives an option to 'Keep formatting' or 'Remove formatting' to the user while pasting content. This could get annoying for users. We wish to  this and default it to 'Remove formatting'.

Some itil users While pasting table or content most of the time they can get remove formatting.

 

find_real_file.png

If they click Keep formating button They are not getting keep formating format. This issue facing only some itil users.

Could you please help on this.

 

Thanks,

SRI@

3 REPLIES 3

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

just copying here the solution provided by ServiceNow in this article: https://hi.service-now.com/kb_view.do?sysparm_article=KB0661805

Solution


As of New York, there are system properties to configure the paste behavior for both HTML and Microsoft Word formatted content:

glide.ui.html.editor.v4.paste.word_import

Paste formatting behavior for Microsoft Word. This setting controls how content being pasted from Microsoft Word is filtered. The supported values are:

  • clean - Preserve the structure of the content such as headings, tables and lists but remove inline styles and classes. This results in simple content that uses the site's CSS stylesheet while retaining the semantic structure from the original document.
  • merge - Preserve the inline formatting and structure of the original document. Invalid and proprietary styles, tags and attributes are still removed ensuring that the HTML is valid while more closely matching the original document formatting.
  • prompt (Default) - Prompt the user to choose between the clean and merge options after attempting to paste Word content.


glide.ui.html.editor.v4.paste.html_import

Paste formatting behavior for HTML. This setting controls how content being pasted from sources other than Microsoft Word is filtered. Note that this includes content copied from TinyMCE itself. The supported values are:

  • clean (Default) - Preserve the structure of the content such as headings, tables, and lists but remove inline styles and classes. This results in simple content that uses the site's CSS stylesheet while retaining the semantic structure from the original document.
  • merge - Preserve the inline formatting and structure of the original document. Invalid and proprietary styles, tags and attributes are still removed ensuring that the HTML is valid while more closely matching the original document formatting.
  • prompt - Prompt the user to choose between the clean and merge options after attempting to paste HTML content. 


These properties can be updated by an admin by navigating to System Properties > UI Properties (towards the bottom of the page, with the rest of the HTML editor configuration).

Give a try if this will solve your issue!

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto

Sri67
Kilo Explorer

Hi Alberto,

 

If i did paste from MS_word copying and pasting the data with the table it is not asking me and will reformat to take out the table.

could you please help on this.

 

Thanks,

SRI@

Sri67
Kilo Explorer

Sorry Alberto,

If i did content or table  from Google Docs copying and pasting the data with the table it is not asking me and will reformat to take out the table.

could you please help on this.

 

Thanks,

SRI@