Text editor and setTextFormat (need help)

Hello,

I created a text editor in AS3 to administer a site online, but i have a problem when i select a word, put it in bold, save the text and load it, all the text after this word becomes bold too.
(I’m sorry if my english is not very good i’m french)

Here is my code

var formatGlobal12:TextFormat = new TextFormat ("_serif", 12);
txt_references_springbok_fr.setTextFormat (formatGlobal12);

var formatSelection12:TextFormat = new TextFormat ("_serif", 12);
formatSelection12.bold=true
formatSelection12.leading=0
function appliquerFormatSurSelection12 (e:MouseEvent):void
{
        txt_references_springbok_fr.setTextFormat (formatSelection12, txt_references_springbok_fr.selectionBeginIndex, txt_references_springbok_fr.selectionEndIndex);
}

boutonAppliquer.addEventListener (MouseEvent.CLICK, appliquerFormatSurSelection12)