[ 
https://issues.apache.org/jira/browse/FLEX-33278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13713258#comment-13713258
 ] 

Justin Mclean commented on FLEX-33278:
--------------------------------------

I've put a fix into TLF that I believe fixed the issue would you mind testing 
it for me as I don't currently have easy access to a windows OS.

The fix is:
                        if (useClipboardAnnotations && 
                                source.lastIndexOf('\u000A', source.length - 1) 
!= source.length - 1)
                        {

My reasoning being you just need to check if the text doesn't end in a "\n" and 
as on both OSX and Windows newlines end with "\n".
                
> Ctrl+V doesn't work properly
> ----------------------------
>
>                 Key: FLEX-33278
>                 URL: https://issues.apache.org/jira/browse/FLEX-33278
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: RichEditableText
>    Affects Versions: Adobe Flex SDK Previous, Apache Flex 4.8 (parity release)
>         Environment: Windows 7
>            Reporter: Nazar Yavny
>
> The issue is present when user tries to paste text that starts with new line.
> When maxChars variable is specified and user tries to paste with Ctrl+V text 
> bigger than maxChars - component will cut of extra chars, but when user 
> presses Ctrl+V one more time - text will be pasted again. So, in this 
> situation length of component's inner text will be greater than specified 
> maxChars variable.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to