Unplanned
Last Updated: 15 Oct 2021 09:31 by ADMIN
Tom
Created on: 12 Oct 2021 09:57
Category: RichTextEditor
Type: Feature Request
1
RichTextEditor: Provide an option to select and copy text from the editor when in Read-Only State
When the RadRichTextEditor has IsReadOnly="True" our expectation is to be able to still select and copy text from it without going into edit mode on the document. However, when IsReadOnly="True", the control is unresponsive as though it were disabled.
9 comments
ADMIN
Didi
Posted on: 15 Oct 2021 09:31

Hello Tom,

Thank you for this information. I will add it to the internal item. 

Regards,
Didi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tom
Posted on: 14 Oct 2021 14:24

That's a great question! I need to understand Xamarin.Essentials.Clipboard better than I do. What I do know is that I can go to Chrome on my phone and select-copy text from an article and paste it into a text message. I can tap-hold in Chrome to copy a link and paste it in a text message. Or 'share' text or links though various means. 

So first approximation is: "I just want Copy and Select (but not Paste obviously) to work the same way in Read-Only as they do when the control is enabled." Whatever that is. Whatever format it's already doing. The second is: "Copying text and links from my Rich Text doc should have the same feel as doing the same thing from Chrome.

I don't think I've seen any cut-paste on mobile that includes images, have you? Sure, I 'want' to have a selection in one of my notes that includes a picture and then copy paste that into a different note. That would be great, right? I'm just so used to the WinOS clipboard where you can go to Chrome and select images and hyperlinks and everything and paste it into an OpenXML doc and it just works. Or where you can specify just the plain text from the clipboard. Or where you can use reflection to see exactly what's in the clipboard. I might need to curb my enthusiasm...

ADMIN
Didi
Posted on: 14 Oct 2021 12:32

Hi Tom,

Thank you for the provided information. 

In what format do you expect the information to be copied? plain text, html, etc?

Regards,
Didi
Progress Telerik

Remote troubleshooting is now easier with Telerik Fiddler Jam. Get the full context to end-users' issues in just three steps! Start your trial here - https://www.telerik.com/fiddler-jam.
Tom
Posted on: 13 Oct 2021 15:55

> If you can share what is the exact scenario you want to achieve?

The goal is to have the mobile app mimic the behavior of the WinOS Desktop version of SasQuatch Find Anything that is published in the Microsoft Store. This YouTube demonstrates.

Tom
Posted on: 13 Oct 2021 12:57
* Three kinds of people in the world: Those who can count and those who can't.
Tom
Posted on: 13 Oct 2021 12:55

If you can share what is the exact scenario you want to achieve?

Sure! Here's just one:

[Scenario 1: Simple]

Say I've taken some notes on a strategy meeting and I am now viewing them. I query the database for "strategy meeting notes"  it brings up a document in RadRichTextEditor with links and text. 

Now, I want to copy a link or copy some text and put it in a text message to forward someone. 

[Scenario 2: Advanced]

Say my CFO is sharing a database on the Google Drive and I have viewing permissions only. I do the same thing: it's a query for "strategy meeting notes" and I want to copy her notes into my own. But I don't have permissions to put that document into edit mode so now I can only look wistfully and tap with futility.

ADMIN
Didi
Posted on: 13 Oct 2021 10:29

Hello Tom,

When the editor is in read-only state you cannot select and copy text and edit the content. IsEnabled is not an option in this case. The feature must be implemented for IsReadOnly property. The current implementation is when the content editable is false, you cannot copy, select, edit the document, the toolbar is also disabled. 

If you can share what is the exact scenario you want to achieve? What is the expected information you want to receive from the copy operation when the document is in a read-only state? 

Regards,
Didi
Progress Telerik

Remote troubleshooting is now easier with Telerik Fiddler Jam. Get the full context to end-users' issues in just three steps! Start your trial here - https://www.telerik.com/fiddler-jam.
Tom
Posted on: 12 Oct 2021 12:30
*edit text
Tom
Posted on: 12 Oct 2021 12:29
The way it was taught to me in the early days of Component Object Model is that the properties and methods that are exposed in the interface are a contract. Taking that view, if the only available behavior is to enable or disable the control entirely, then the IsEnabled property should be exposed in the interface and the IsReadOnly property should not be public. BUT IT IS, and its accessibility constitutes a delivery contract for canonical ReadOnly behavior for an control whose purpose is to edit test.

It sounds as thought the IsEnabled property might require a 'new' implementation in this particular case because of limitations in the base class library?