This is a migrated thread and some comments may be shown as answers.

Cut and Copy menu items are sometimes disabled

3 Answers 80 Views
RichTextEditor
This is a migrated thread and some comments may be shown as answers.
Mihajlo
Top achievements
Rank 1
Iron
Mihajlo asked on 21 Apr 2020, 06:00 PM
In demo editor it is possible to select text with double-click, and right-click the text, and have Cut and Copy menu items disabled in context menu. One has to be very fast, but it's not hard to reproduce it. Sometimes even Cut is enabled and Copy is disabled. Not sure if this is a bug or by design.

3 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 24 Apr 2020, 07:00 AM

Hello, Mihajlo,

RadRichTextEditor uses a ContextMenuContentBuilder for creating the menu that is shown when you right click on the text.

Usually, Cut and Copy options are expected to be disabled if there is no selected text in RadRichTextEditor because you don't have anything for copying.

I have tested in our Demo application and in a brand new sample project as well. However, I was unable to replicate any undesired behavior.

 

The important part here is which operation is triggered first - the double click or the single right click? The context menu items depend on whether you have any selected text at the moment you request the menu. Hence, if the right-click operation is first and then you double click, even though it may executed very quickly, the Copy and Cut menu items are expected to be disabled if no text is selected. 

However, if you are experiencing any further difficulties after the proper order of the operations, it would be greatly appreciated if you specify the exact steps that i need to perform in order to reproduce the problematic behavior. Thank you in advance.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Mihajlo
Top achievements
Rank 1
Iron
answered on 24 Apr 2020, 09:57 AM
These images don't appear to be from Word-inspired project, where I saw the problem. Maybe there is some difference there. Also, one has to be fast with double-click/right-click combo. Time span between two actions should be less than 200 ms. Maybe even move the mouse pointer a few pixels between two actions, but stay within the bounds of selected text. Also, the problem appears only sometimes. It's a "heisenbug". Must try at least a dozen times.
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 28 Apr 2020, 12:21 PM

Hello, Mihajlo,

To be honest, this undesired behavior is a little bit tricky in reproducing. That is why I would like to explain again why it occurs. 

It is important which operation is triggered first - the double click or the single right click. The context menu items depend on whether you have any selected text at the moment you request the menu. Hence, if the right-click operation is first and then you double click, even though it may executed very quickly, the Copy and Cut menu items are expected to be disabled if no text is selected. 

I have logged it in our feedback portal by creating a public thread on your behalf in order to investigate the possibility to improve this undesired behavior. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik points.

Should you have further questions please let me know.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
RichTextEditor
Asked by
Mihajlo
Top achievements
Rank 1
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Mihajlo
Top achievements
Rank 1
Iron
Share this question
or