WPCubed Product Support

Horizontal Line and Undo

Hi,

Inserting Horizontal Line works perfectly, with code:

Editor->TextObjects->InsertNewObject(wpobjHorizontalLine, false, false);

However, Undo doesn't seem to catch it, not even when I enclose it with StartUndoLevel(), EndUndoLevel().

Latest WPTools 6 demo also shows the same behaviour.

What is the proper way to achieve inserting and undoing insertion of a Horizontal Line?

Dex

#1 ♥ 0
3.4k Views 2 users read 1 min
support

You can use the High-Level version of that method:

WPRichText1.InputNewObject( wpobjHorizontalLine );

#2 ♥ 0
This category is archived. No new posts are possible.