Skip to main content
Aaronius9er9er
Inspiring
April 22, 2010
Question

When to call TextFlow.normalize()

  • April 22, 2010
  • 1 reply
  • 390 views

Hey there.

I'm creating a text editor where users can apply formats to their current selection.  As I was digging through RichEditableTextContainerManager.applyFormatOperation I noticed that after they call ApplyFormatOperation.doOperation() they call textFlow.normalize().  So that got me thinking, do I likewise need to call normalize?  If so, why is it in the tlf_internal namespace (seems like something developers would want to do quite frequently)?  And shouldn't it be called automatically when executing an ApplyFormatOperation?  Can someone provide some enlightenment?

Thanks.

Aaron

This topic has been closed for replies.

1 reply

Adobe Employee
April 22, 2010

normalize is called automatically by updateAllControllers.  Those two calls in RichEditableTextContainerManager are redundant and should be removed.

Hope that helps,

Richard

Aaronius9er9er
Inspiring
April 22, 2010

Awesome.  Exactly what I was looking for.