I am using text layout framework textflow in Flex 3 to get embedded images. In the edit field for the application the user can apply formatting. This all works fine except if the user deletes all the text they have entered and then starts typing again then the formatting is lost.
I'm using
//setup default formatting
currentCF.fontWeight = FontWeight.NORMAL;
_currentCF.fontStyle = FontPosture.NORMAL;
_currentCF.textDecoration = TextDecoration.NONE;
_currentCF.color = 0; //black
IEditManager(textFlow.interactionManager).applyLeafFormat(_currentCF);
To setup the initial formatting then similar code to apply the formatting when the user changes it.
So how can I stop the user from 'deleting' the formatting if they delete all the text?
Thanks, Nigel