HTML Field Right Click

MichaelCreatura
Tera Guru

Hi All,

 

We've just had some strange behaviour reported to us since upgrading to TOKYO. 

 

When a user right-clicks on a HTML field within a record, it doesn't show the expected context menu. Instead it shows like below. 

 

Actual

MichaelCreatura_0-1668181995965.png

Expected

MichaelCreatura_1-1668182020435.png

 

The only way of accessing the menu as expected is to hold the CTRL key and right click. As minor as that sounds it is a rather large change in behaviour for users which they are not accustom too! This is also having impact on copying and pasting, accessing spellcheck and other options that they naturally do with a simple right click. 

 

I've noticed this appears when the field is set to TinyMCE

MichaelCreatura_2-1668182481876.png

Thanks! 

 

1 ACCEPTED SOLUTION

Mike_R
Kilo Patron
Kilo Patron

See this. Apparently it's expected behavior but it's a major downgrade in my opinion.

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1189657

 

 

Description

In Tokyo, it is not possible to right click - paste in an HTML field

Steps to Reproduce

 

Login to instance .Two ways to see behavior.
First way:
1. Firstly, open an existing change_request or incident record.
2. Click on the 3 dots (more options) at the top of page and select "Email" to open the email client.
-- Note the body of the email is an HTML field (uses TinyMCE)
3. Use Cut / Copy or CTRL+C to capture some random text to paste into the field.
4. Attempt to right click in field to select "Paste" to paste some content into this field
--NOTE there is no option to Cut / Copy / Paste from this field.
5. It is possible to use CTRL+V to paste the content into this field.

Second way (see recording attached):
1. Open a new kb_knowledge record / article
-- Note that the Article body is an HTML field
3. Use Cut / Copy or CTRL+C to capture some random text to paste into the field.
4. Attempt to right click in field to select "Paste" to paste some content into this field
--NOTE there is no option to Cut / Copy / Paste from this field.
5. It is possible to use CTRL+V to paste the content into this field.

In San Diego, the right click menu displays options such as cut/copy/paste but in Tokyo it only shows "Link"

 

Workaround

This is expected behavior and by design in all currently supported releases which uses TinyMCE Version 5.
Starting from TinyMCE version 5 we have to use control + right click to enable context menu.

View solution in original post

7 REPLIES 7

This KB does not exist (KB1189657) and the problem with the functionality of TinyMCE since Tokyo persists

 

Tim Severson
Tera Contributor

Just hold CTRL and then right click and a context menu will pop up with paste options.

James Bustard
Tera Contributor

At my work we're using an onLoad client script to 'fix' this issue. 

Table: Global

UI Type: Desktop

Type: onLoad

Isolate script: Unchecked (this is important)

function onLoad() {
    window.onload = function() {
        if (typeof tinymce !== 'undefined' && typeof tinymce.get === 'function') {
            tinymce.get().forEach(function (editor) {
                if (editor.options) {
                    editor.options.set('contextmenu', 'false');
                } else if (editor.settings) {
                    editor.settings.contextmenu = false;
                }
            });
        }
    };
}