[
https://issues.apache.org/jira/browse/FLEX-12121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Kessler resolved FLEX-12121.
---------------------------------
Resolution: Not A Problem
Assignee: Mark Kessler
Using the below test application, typing in text, selected all of it and
clicking the button. Cannot reproduce issue. It was likely fixed in an
earlier version of the SDK.
<?xml version="1.0" encoding="utf-8"?>
<!---
Test application
-->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
protected function nullSelection():void
{
editor.selection.htmlText = "";
trace(editor.htmlText);
}
]]>
</fx:Script>
<s:layout>
<s:VerticalLayout horizontalAlign="center" verticalAlign="middle"
gap="0" />
</s:layout>
<mx:RichTextEditor id="editor" />
<mx:Button label="Null Selection" click="nullSelection()" />
<s:Rect height="20" />
<s:Label text="{editor.htmlText}" />
</s:Application>
> Setting selections to "" has no effect
> --------------------------------------
>
> Key: FLEX-12121
> URL: https://issues.apache.org/jira/browse/FLEX-12121
> Project: Apache Flex
> Issue Type: Bug
> Components: mx: Rich Text Editor
> Affects Versions: Adobe Flex SDK Previous
> Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
> Reporter: Adobe JIRA
> Assignee: Mark Kessler
>
> Steps to reproduce:
> 1. Use the following MXML:
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
> <mx:Script>
> <![CDATA[
> private function nullSelection():void {
> editor.selection.htmlText = "";
> trace(editor.htmlText);
> }
> ]]
> >
> </mx:Script>
> <mx:RichTextEditor id="editor" />
> <mx:Button label="Null Selection" click="nullSelection()" />
> </mx:Application>
> 2. Enter some text and select it.
> 3. Click on the button.
>
> Actual Results:
> Text in the UI is removed, but the editor.htmlText doesn't reflect this
> change.
>
> Expected Results:
> editor.htmlText == ""
>
> Workaround (if any):
> None found. As in http://bugs.adobe.com/jira/browse/SDK-11723, I tried using
> the "editor.htmlText = editor.htmlText;" trick to force an update, but that
> doesn't have the effect we'd want.
>
--
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