Is there a way to make parts of text readonly in a RichEditableText ?
What I actualy want is to be able to append words that would act as a char, meaning the user won't be able to modify the word and if he tries to delete it , the whole word will be deleted.
I've tried to search for the 'editable' properties on the elements from a TextFlow or on a TextLayoutFormat but there's no such thing ....
The other solution I thought would be to save the position for the readonly words, and on each text change update positions and check if the editing affects any readonly word. The problem is that I fear this solution would add a semnificant delay on editing .
Can you please point me to a solution?
That is not a default feature. Sounds like a fair amount of work. You could maybe do it by watching keyboard events.
Just in case someone else is interested in this behanior, I've choose to implement this useing InlineGraphicElements. I've added the readonly text inside a Sprite useing a TextField and then added the Sprite as source for a new InlineGraphicElement. This asured the wanted functionality but I had problems with makeing the graphic text look like the one in the RichEditableText because I was useing embeded fonts as CFF that did not work for the Textfield.
I hope this helps !