Skip to main content
Known Participant
Sep 21, 2009 8:54 AM UTC
Question

Undo with spanElement

Hi

I have undo end it works perfect but when I add a span element it don't works:

var pElement:ParagraphFormattedElement = currentRange.firstParagraph;

var span:SpanElement = new SpanElement();
span.text = "ciaoo   ";
pElement.addChildAt(0,span);

I don't find operation to add spanElement on Editmaneger

http://livedocs.adobe.com/flex/gumbo/langref/

thanks

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Inspiring
Sep 23, 2009 5:45 PM UTC

Undo is baed on operations not model changes.  In this case you'll want to set a selection and call the EditManager insertText function.

Richard

Translate