Return Html with TrackChange and with Accepted Track Change

0 Answers 4 Views
Editor
Emin Sadigov
Top achievements
Rank 1
Iron
Veteran
Iron
Emin Sadigov asked on 28 Jun 2024, 04:11 PM

Hello,

Is any way to return:

1. Html with Track Change marks and comments to store it in the database for next edit session?

2. Auto accepted html.

I tried in cs: RadEditor1.Content - but it return content without changes, RadEditor1.GetHtml(EditorStripHtmlOptions.AcceptTrackChanges) - but also track changes were not accepted.

Can you provide any example, please?

Thank you!

Rumen
Telerik team
commented on 01 Jul 2024, 07:27 AM

Hi Emin,

Straight to the questions:

  1. You can obtain the specific Track Changes and Comments HTML formatting through the RadEditor1.Content property: 

            protected void Submit_Button_Click(object sender, EventArgs e)
            {
                TextArea1.Text = RadEditor1.Content;
            }

  2. You can call the AcceptTrackChanges() method before the GetHtml one and the track changes will be accepted:

            protected void Submit_Button_Click(object sender, EventArgs e)
            {
                RadEditor1.AcceptTrackChanges();
                TextArea1.Text = RadEditor1.GetHtml(EditorStripHtmlOptions.AcceptTrackChanges);
            }

No answers yet. Maybe you can help?

Tags
Editor
Asked by
Emin Sadigov
Top achievements
Rank 1
Iron
Veteran
Iron
Share this question
or