Implementing TinyMCE PowerPaste Plugin

Michael131
Giga Expert

Is it possible to install the TinyMCE PowerPaste Plugin?

1 ACCEPTED SOLUTION

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

it's already installed OOTB in any ServiceNow instance.

Basically, Due to this feature, when users paste content into any html field, they see a popup with a message asking whether to keep or remove the formatting in the pasted content.

For any other information, you can refer to the official TinyMCE documentation below:

https://www.tiny.cloud/docs/plugins/powerpaste/

 

find_real_file.png

For users who do a lot of "copy and paste" operations in the html field as part of their daily job, this new functionality might be annoying. There is a workaorund for how to disable this new feature with TinyMCE editor:

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).

Hope this answer to your quetion.

If I have answered your question, please mark my response as correct and/or helpful so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thank you

Cheers
Alberto

View solution in original post

2 REPLIES 2

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

it's already installed OOTB in any ServiceNow instance.

Basically, Due to this feature, when users paste content into any html field, they see a popup with a message asking whether to keep or remove the formatting in the pasted content.

For any other information, you can refer to the official TinyMCE documentation below:

https://www.tiny.cloud/docs/plugins/powerpaste/

 

find_real_file.png

For users who do a lot of "copy and paste" operations in the html field as part of their daily job, this new functionality might be annoying. There is a workaorund for how to disable this new feature with TinyMCE editor:

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).

Hope this answer to your quetion.

If I have answered your question, please mark my response as correct and/or helpful so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thank you

Cheers
Alberto

Eva Whittle
Kilo Explorer

Yes, It’s possible to install PowerPaste plugin. There are a few steps you need to follow to install the PowerPaste plugin.

- Make the PowerPaste plugin folder available over http.

- Add the path to the PowerPaste plugin folder to the external plugins option in tinymce.init().

Earlier I was using PowerPaste plugin and Now, I found an amazing alternative to PowerPaste Plugin i.e pasteitcleaned. It’s an outstanding TinyMCE plugin that handles copy/paste from Excel, Power Point, Pdf and many more. It's an affordable and amazing plugin as compared to PowerPaste. You should try it once.