bonjour,voici mon probleme
je veux faire une barre d'outil pour un bloc de texte, seulement quand je selectionne une zone pour mettre en gras, tout le texte se met en gras et je ne comprend pas
merci de m'aider
voici mon code
oui je suis d'accord avec toi mais c'est bien ce que je fais la (non?)
merci de me répondre
myTextFormat = new TextFormat();
boldButton.onRelease = function(){
Selection.setFocus(textIns_txt);
begin = Selection.getBeginIndex();
end = Selection.getEndIndex()
Selection.setSelection(begin, end);
currentFormat = textIns_txt.getTextFormat(begin, end)
myTextFormat = currentFormat;
myTextFormat.bold = true;
textIns_txt.setTextFormat(begin, end, myTextFormat);
}