Track change for Insert - Hyperlink is not working

2 Answers 22 Views
RichTextBox
Emin Sadigov
Top achievements
Rank 1
Iron
Veteran
Iron
Emin Sadigov asked on 01 Mar 2024, 03:04 PM

Hello,

 

Please reproduce:

1. Open Telerik Editor and enable Track change

 

2. Insert Hyperlink

 

3. Hyperlink added, but not marked as Inserted:

Note: Copy and Paste with hyperlink is working as Track Change

 

Is it a bug? How can it may be fixed? Any solution to fix it?

 

Thank you!

Emin Sadigov
Top achievements
Rank 1
Iron
Veteran
Iron
commented on 01 Mar 2024, 03:06 PM

Used Windows 11, Telerik 2022.1.222

2 Answers, 1 is accepted

Sort by
0
Emin Sadigov
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 12 Mar 2024, 03:40 PM

I have fix it in the Source Code, the following code must be added in the Documents_WPF project, Commands\InsertHyperlinkCommand.cs:

        protected override void OnInsertCoreExecuted(InsertHyperlinkCommandContext context)
        {

            context.StartPosition.RestorePositionFromBoxIndex();
            context.StartPosition.AnchorToCurrentBoxIndex();

            context.EndPosition = new DocumentPosition(context.Document.CaretPosition);
            context.Document.InsertInsertRevisionRange(context.StartPosition, context.EndPosition, context.RevisionInfo);
            context.EndPosition.AnchorToCurrentBoxIndex();

        }


0
Dimitar
Telerik team
answered on 13 Mar 2024, 01:16 PM

Hi Emin,

Yes, this is considered an issue and I have logged it on your behalf. You can track its progress, subscribe to status changes, and add your comment here: RichTextBox: Track change for Insert - Hyperlink is not marked as change properly. I ahve updated your Telerik points. 

You can use your workaround until this is resolved.

I want to apologize for the inconvenience this is causing you.

Regards,
Dimitar
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com
Tags
RichTextBox
Asked by
Emin Sadigov
Top achievements
Rank 1
Iron
Veteran
Iron
Answers by
Emin Sadigov
Top achievements
Rank 1
Iron
Veteran
Iron
Dimitar
Telerik team
Share this question
or