Skip to main content
Known Participant
September 21, 2009
Question

Undo with spanElement

  • September 21, 2009
  • 1 reply
  • 487 views

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 has been closed for replies.

1 reply

Adobe Employee
September 23, 2009

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