Home Search Member List Faq Register Login  
UltimateEditor
Re: Undo via Control-Z not working consistently

Thread Starter: mwickens   Started: 11-26-2008 6:29 PM   Replies: 14
 Karamasoft Support Forums » General Discussions » UltimateEditor » Re: Undo via Control-Z not working consistently
 Printable Version    « Previous Thread   Next Thread »
  26 Nov 2008, 6:29 PM
mwickens is not online. Last active: 8/28/2009 11:53:58 AM mwickens

Top 10 Posts
Joined on 11-27-2008
Posts 29
Undo via Control-Z not working consistently
Pressing Control-Z  to undo works only intermittently for me. If I do it very quickly after making my change, it will sometimes work, but usually it doesn't. The Undo toolbar button always works. I've tried this with IE6 and 7, and on two different computers. This is happening both in my application and your demos.

Is this a known issue, or am I missing something?

Thanks for any assistance you can provide.

Mark

  
  26 Nov 2008, 6:42 PM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Undo via Control-Z not working consistently
UltimateEditor does not support the built-in browser Ctrl-Z key for Undo operation because it loses the state of the editor content as soon as the content is set through the innerHTML property. UltimateEditor uses its proprietary algorithms to handle the Undo operation through the Undo/Redo toolbar buttons on the editor toolbar. You can set the maximum count of undo/redo operations through the MaxUndoCount property, which has a default of 20. Please use the Undo/Redo toolbar buttons instead of Ctrl-Z to undo your last action.
  
  26 Nov 2008, 6:53 PM
mwickens is not online. Last active: 8/28/2009 11:53:58 AM mwickens

Top 10 Posts
Joined on 11-27-2008
Posts 29
Re: Undo via Control-Z not working consistently
Thanks for the quick reply!

OK, I understand. I guess the answer will be no, but I have to ask:

Is it possible to send an Undo command to the editor (one that I could trigger with a key event)?

Mark

  
  28 Nov 2008, 11:30 PM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Undo via Control-Z not working consistently
We added this feature to the new version (v3.3) that will be released beginning of next week. UltimateEditor will now recognize the following key events and handle the undo/redo operations accordingly:

Ctrl-Z: Undo
Ctrl-Y: Redo
Alt+Backspace: Undo
Alt+Shift+Backspace: Redo

We will let you know as soon as the new version is ready to download. Thanks for your patience.

  
  29 Nov 2008, 7:22 AM
mwickens is not online. Last active: 8/28/2009 11:53:58 AM mwickens

Top 10 Posts
Joined on 11-27-2008
Posts 29
Re: Undo via Control-Z not working consistently
Awesome! Thanks!

  
  01 Dec 2008, 8:39 AM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Undo via Control-Z not working consistently
Released the new version with this feature. Now you can use "Ctrl-Z" and "Alt+Backspace" for undo, and "Ctrl-Y" and "Alt+Shift+Backspace" for Redo.
  
  01 Dec 2008, 8:06 PM
mwickens is not online. Last active: 8/28/2009 11:53:58 AM mwickens

Top 10 Posts
Joined on 11-27-2008
Posts 29
Re: Undo via Control-Z not working consistently
Thanks. I have downloaded and installed the new version, but I get a JavaScript error when I try to use it in my project:

Error: this.GetEditorHTML() is undefined
Source File: http://localhost:4364/UltimateEditorInclude/UltimateEditor.js
Line: 7


I double-checked that all the files were installed correctly.

I've gone back to v3.0 for now. If you have any ideas on what went wrong, please let me know.

Thanks,
Mark

  
  01 Dec 2008, 8:34 PM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Undo via Control-Z not working consistently
We can't reproduce the problem in our test environment or on our live demo section at http://www.karamasoft.com/Samples.aspx?component=UltimateEditor. Can you try on our site, and with the provided sample C# and VB apps. Please also take a look at the cleanup procedure at
  
  02 Dec 2008, 9:02 AM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Undo via Control-Z not working consistently
With the latest UltimateEditor, you also need to copy ephtmltopdf.dll to the bin folder of your app.
  
  03 Dec 2008, 12:50 PM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Undo via Control-Z not working consistently
Found a problem with the build, and released a new build. Please download and try with the new one.
  
  08 Dec 2008, 3:40 PM
mwickens is not online. Last active: 8/28/2009 11:53:58 AM mwickens

Top 10 Posts
Joined on 11-27-2008
Posts 29
Re: Undo via Control-Z not working consistently
I reinstalled with the updated build, but still got the error. After much trial and error, I found that the problem was resolved by adding the following attributes to the editor control:

PreviewTabEnabled="false" PreviewTabVisible="false"

The complete element:

<kswc:UltimateEditor ID="edtMsg" Font-Size="2" Font-Names="Arial, Helvetica, Sans-serif" runat="server" onToolbarItemRender="edtMsg_ToolbarItemRender"
        OnPostBack="edtMsg_PostBack"
PreviewTabEnabled="false" PreviewTabVisible="false" HtmlTabEnabled="false" HtmlTabVisible="false" DesignTabEnabled="False" DesignTabVisible="false" UltimateSpell-Enabled="true" UltimateSpell-SpellAsYouType="true" DisplayWordCount="false" Width="100%">
        </kswc:UltimateEditor>


Unfortunately, a dropdown menu in the toolbar no longer works, and the tooltip for one button displays as "Object reference not set to an instance of an object." Is there a document somewhere that describes how to upgrade projects from one version to another? I looked at the Release History page and did not see anything there.

Mark

  
  08 Dec 2008, 3:43 PM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Undo via Control-Z not working consistently

  
  08 Dec 2008, 3:56 PM
mwickens is not online. Last active: 8/28/2009 11:53:58 AM mwickens

Top 10 Posts
Joined on 11-27-2008
Posts 29
Re: Undo via Control-Z not working consistently
I followed all the steps in that post. I'm actually looking for information on what code changes need to be made to projects created with earlier versions.

Mark

  
  08 Dec 2008, 5:45 PM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Undo via Control-Z not working consistently
You're not supposed to change any code. You should only replace the dlls and include folders as explained in that forums post. If the problem persists you may send us your whole app in a zip file so that we can look into the problem in our test environment.
  
  08 Dec 2008, 9:04 PM
mwickens is not online. Last active: 8/28/2009 11:53:58 AM mwickens

Top 10 Posts
Joined on 11-27-2008
Posts 29
Re: Undo via Control-Z not working consistently
Thanks, I'll try this again when I have more time to troubleshoot; for now, we'll live with the Undo bug.

Mark

  
 Page 1 of 1 (15 items)
Karamasoft Support Forums » General Discussions » UltimateEditor » Re: Undo via Control-Z not working consistently

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2019 Karamasoft LLC. All rights reserved.