Copy link to clipboard
Copied
I'm not sure if it's just me going mad, but....
Imagine a container with the following 2 TextLines, the vertical pipes (|) are meant to represent the bounds of the container so please assume these are aligned:
|Line one is longer|
|Line two |
In my code I set the interactionManager to allow editing of the text.
When I move my mouse over any of the text I get the text caret cursor, I can click to drag select text, right click to get the relevant context menu ("select all" etc). When I move my mouse in the blank area to the right of the text "Line two", you get no text caret cursor, the TextLine's bounds simply don't extend into this area so the "edit" context menu is not applied.
This makes text selection very awkward, now you have to find the 1 pixel wide point after the last character to begin to select all the previous text.
Has something changed recently?
Not that I'm aware of. This doesn't duplicate in our testing.
TLF does rely on drawing a transparent background into the Sprite.graphics. Are you clearing that?
Richard
Copy link to clipboard
Copied
Not that I'm aware of. This doesn't duplicate in our testing.
TLF does rely on drawing a transparent background into the Sprite.graphics. Are you clearing that?
Richard
Copy link to clipboard
Copied
That is spot on... I have implemented Squiggly for my "pure TLF" text inputs, calling clear before I run through and underline the misspelled words.
Just in case anyone finds this thread when searching for Squiggly, the way I did it was:
I'm sure there is a more elegant way, but this seems to work. I believe I read Adobe are working on Squiggly for pure TLF, if not, I hope this helps somebody get on the right track.
I'd paste the code but as this is for a client I can't paste the full contents of the class-files without permission or sufficient modification first.
Thanks again, Richard
Message was edited by: richardleggettmk added bullets
Copy link to clipboard
Copied
Nice implementation... here's another implementation I have done for using with TLF and openning a popup to spell check and returning the the results while keeping all the TLF properties:
http://elromdesign.com/blog/2010/12/16/implementing-squiggly-spell-check-for-tlf-text-layout-framework-text-inputs/
Copy link to clipboard
Copied
Hi EladElrom,
I was not able to click on your link above, but wanted to let you know that Squiggly 0.5 was recently released, and this version comes with native TLF support. Please let us know if this is something you find useful.
- Bruce, Adobe Squiggly team