HtmlEditor :  Phorum 5 The fastest message board... ever.

This is the discussion forum for the HtmlEditor. See also the HtmlEditor home page, where you can download the control, and the Documentation Wiki, a collaborative project for documenting the control.

Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
undo list with table management
Posted by: Sprieten (194.78.48.---)
Date: Monday, 01-Dec-2003, 08:07:30

Hi,

I have added some table management to the html editor. My problem is that when I for instance add a row to the table and press undo that he deletes the cells one by one and that is not what I want. Is there a way to add my table actions to the undo list of mshtml???

Re: undo list with table management
Posted by: Joerg Krause (---.reverse.qsc.de)
Date: Monday, 01-Dec-2003, 11:33:00

You'll need to implement IOleUndoUnit and IOleUndoManager and pack multiple undo steps into one unit which is recalled with the UNDO command internally. There are several sources on the internet about these interfaces.

You can find a working solution within our .NET editor control:

[www.comzept.de]

Joerg


Re: undo list with table management
Posted by: Sprieten (194.78.48.---)
Date: Monday, 01-Dec-2003, 13:06:05

Do you need any special references to implement a IOleUndoManager? Is there any source code that demonstrates the use of those utilities?
thx a lot

Re: undo list with table management
Posted by: Sprieten (194.78.48.---)
Date: Monday, 01-Dec-2003, 13:16:23

Joerg,

is there a way to avoid that some actions (my insert cells) will be inserted in the undo list?
I want 5 actions replaced by 1 action in the undo list. Is this possible?
Thx!

Re: undo list with table management
Posted by: Joerg Krause (---.reverse.qsc.de)
Date: Monday, 01-Dec-2003, 23:12:03

The principle is that you pack any number of undo steps into one call of the undo function. I've not found any way to avoid a specific step to be not packed in a usable piece of code.

And yes, for table actions it works very fine. You must also remember that inserting 5 cells does not result in 5 steps, because you insert the row plus 5 cells (6 steps) and maybe some additional actions to handle rowspan or colspan, content of cells and much more.

Again, the way is not to avoid inserting undo steps, but packing them together. The interfaces have appropriate methods for that.

Joerg

Re: undo list with table management
Posted by: Sprieten (194.78.48.---)
Date: Tuesday, 02-Dec-2003, 08:34:26

Thanks for your advice, I appreciate it.

Re: undo list with table management
Posted by: Vaibhav (---.static.exatt.net)
Date: Monday, 29-May-2006, 06:06:47

Hi,

Is there any source code avaliable that show Implementation of IOleUndoManager.

Thanks,
-Vaibhav

Re: undo list with table management
Posted by: Inam (---.isb.dancom.net.pk)
Date: Monday, 11-Sep-2006, 11:02:32

hey
Sprieten can u please send me table managemetn code?



Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically.
37uw9
This is a moderated forum. Your message will remain hidden until it has been approved by a moderator or administrator
This forum powered by Phorum.