flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mihai Chira (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-34807) TLF - EditManager - TextFlowEdit -insertTextScrap
Date Wed, 09 Sep 2015 13:38:46 GMT

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

Mihai Chira commented on FLEX-34807:
------------------------------------

I'm also investigating this. Just to add to the findings above, the bug can only be reproduced
when pasting formatted text at the end of a paragraph (whether the paragraph is empty or not),
but cannot be reproduced in the middle or at the start of (a non-empty) paragraph. That's
because the line {code}destinationLeaf = scrapElement is FlowLeafElement ? FlowLeafElement(scrapElement).getNextLeaf()
: FlowGroupElement(scrapElement).getLastLeaf().getNextLeaf();{code} TextFlowEdit.insertTextScrap()
will return a non-null value for 'destinationLeaf'.

> TLF - EditManager - TextFlowEdit -insertTextScrap
> -------------------------------------------------
>
>                 Key: FLEX-34807
>                 URL: https://issues.apache.org/jira/browse/FLEX-34807
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: RichEditableText
>    Affects Versions: Apache Flex 4.12.0, Apache Flex 4.13.0, Apache Flex 4.14.0
>            Reporter: Robbyn Gerhardt
>            Assignee: Mihai Chira
>              Labels: editmanager, richeditabletext, tlf
>         Attachments: Bildschirmfoto 2015-03-19 um 15.28.19.png, Bildschirmfoto 2015-03-20
um 09.06.47.png, TextEditorTest.air, TextEditorTest.fxp
>
>
> 1. Copy Formatted text from RichEditableText Editor, see Image
> 2. Insert Formatted text from the clipboard with Ctrl + V in the editor. Then comes the
error.
> TypeError: Error #1009: Cannot access a property or method of a null object reference.
> 	at flashx.textLayout.edit::TextFlowEdit$/insertTextScrap()[/Users/erik/Documents/ApacheFlex/git/flex-tlf/textLayout/src/flashx/textLayout/edit/TextFlowEdit.as:244]
> 	at flashx.textLayout.operations::PasteOperation/doOperation()[/Users/erik/Documents/ApacheFlex/git/flex-tlf/textLayout/src/flashx/textLayout/operations/PasteOperation.as:102]
> 	at flashx.textLayout.edit::EditManager/doInternal()[/Users/erik/Documents/ApacheFlex/git/flex-tlf/textLayout/src/flashx/textLayout/edit/EditManager.as:767]
> 	at flashx.textLayout.edit::EditManager/doOperation()[/Users/erik/Documents/ApacheFlex/git/flex-tlf/textLayout/src/flashx/textLayout/edit/EditManager.as:647]
> 	at flashx.textLayout.edit::EditManager/pasteTextScrap()[/Users/erik/Documents/ApacheFlex/git/flex-tlf/textLayout/src/flashx/textLayout/edit/EditManager.as:1806]
> 	at flashx.textLayout.edit::EditManager/editHandler()[/Users/erik/Documents/ApacheFlex/git/flex-tlf/textLayout/src/flashx/textLayout/edit/EditManager.as:270]
> 	at flashx.textLayout.container::ContainerController/editHandler()[/Users/erik/Documents/ApacheFlex/git/flex-tlf/textLayout/src/flashx/textLayout/container/ContainerController.as:2739]
> 	at flashx.textLayout.container::TextContainerManager/editHandler()[/Users/erik/Documents/ApacheFlex/git/flex-tlf/textLayout/src/flashx/textLayout/container/TextContainerManager.as:1876]
> 	at flash.display::NativeMenuItem/select()
> 	at flash.display::NativeMenuItem/performKeyEquivalent()
> 	at flash.display::NativeMenu/_menuItemPerformKeyEquivalent()
> 	at flash.display::NativeMenu/performKeyEquivalent()
> 	at flash.display::NativeMenuItem/_menuPerformKeyEquivalent()
> 	at flash.display::NativeMenuItem/performKeyEquivalent()
> 	at flash.display::NativeMenu/_menuItemPerformKeyEquivalent()
> 	at flash.display::NativeMenu/performKeyEquivalent()
> 	at flash.desktop::NativeApplication/_menuPerformKeyEquivalent()
> 	at flash.desktop::NativeApplication/_onKeyDownCapture()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message