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

[Solved] one question about Ctrl+Z

1 Answer 115 Views
Editor
This is a migrated thread and some comments may be shown as answers.
JC Wu
Top achievements
Rank 1
JC Wu asked on 05 Feb 2010, 02:52 AM
I load some document into RadEditor on page_load.
        protected void Page_Load(object sender, EventArgs e) 
        { 
            if (!IsPostBack) 
            { 
                LoadTemplate(); 
            } 
        } 
        protected void LoadTemplate() 
        { 
            int i = 0; 
            DataSet ds = dsTestDB.GetTemplate(Request.QueryString["templateId"], falseout i); 
            if (i > 0) 
            { 
                RadEditor1.Content = StringUtility.GetString(ds.Tables[0].Rows[0]["Template_Content"as byte[]); 
            } 
        } 

In editor's Design tab, Ctrl+Z will make content undo to what I load on page_load.
But in HTML tab, if I press Ctrl+Z many times, content will undo to empty.
Is there any property to keep HTML content?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Feb 2010, 03:54 PM
Hi,

I was unable to reproduce this behavior (see the video) but please note that the Undo / Redo mechanism of RadEditor works only in Design mode. In Html mode the content area is a standard TextArea element which uses the Undo / Redo mechanism of the browser and we do not control it.

Kind regards,
Rumen
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Editor
Asked by
JC Wu
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or