well, the rte is actually a panel +textarea + controlbar + toolbar when clicking one of the buttons a function get's called
PRIVATE function setTextStyles(type:String, value:Object = null):void this function check's if there is a current selection on the textarea if not set's the style if there is it set's the style only for the selection var tf:TextFormat; var beginIndex:int = textArea.getTextField().selectionBeginIndex; var endIndex:int = textArea.getTextField().selectionEndIndex; if (beginIndex == endIndex) { tf = previousTextFormat; } else tf = new TextFormat(); etc textArea.getTextField().setTextFormat(tf,beginIndex,endIndex); textArea.invalidateDisplayList(); textArea.validateDisplayList(); so, extending this one would be a pain. I vote for make your own from scratch just get the control bar and for the click events make your own function that changes the textarea that has focus I'm not saying this is the best approach(it's just what I would do).