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

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.

SREEVES
Tera Contributor

Someone has opened an Idea to revert this to the pre-Tokyo workings.  Please go upvote it 

https://support.servicenow.com/now?id=view_idea&sysparm_idea_id=f7ac93091b879510acdc54e56b4bcb41&sys...

Musab Rasheed
Tera Sage
Tera Sage

Hello,

Adding to what Mike has shared please go through below thread as well once.

https://www.servicenow.com/community/developer-forum/html-description-tinymce-v5-issues-help-needed/...

Please hit like and mark my response as correct if that helps
Regards,
Musab

MichaelCreatura
Tera Guru

Yes, seems this is a 'feature' with TinyMCE 5 on Tokyo - but agreed major downgrade to user behaviour! 

 

Response from ServiceNow:

 

Hello 

 

I have looked into the details of the issue and this behavior has been reported as "PRB1609720". However, the development team confirmed, this is working as expected because of the version of TinyMCE being used now.
I have attached the problem in the related records section of the Case for your reference.

Starting from TinyMCE version 5 we have to use control + right click to enable the context menu.
Below is the direct link to KB which mentions the same :
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1189657

We are placing the Case in Solution Proposed state with this information. Please review this and let me know if you have any questions and we are glad to assist you further. If everything is good please click on 'Accept Solution' to close the case.