Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3887] In textarea I display some text will red and another text will black

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-07-01T17:57:08.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsAlloy
Labelsios
ReporterRavindra Babu
AssigneeShak Hossain
Created2016-06-22T04:31:22.000+0000
Updated2016-07-01T17:57:08.000+0000

Description

First Image I am showing the normal text to the black color and database text red color. when I change the text the cursor goes to the end of line and normal text also showing red color please help I am attaching my code also

Attachments

FileDateSize
1.PNG2016-06-22T04:26:30.000+0000170908
2.PNG2016-06-22T04:26:31.000+0000190197
userComments.js2016-06-22T04:28:22.000+000028193

Comments

  1. Sharif AbuDarda 2016-06-28

    Hello, The issue is not reproducible with a sample code below. I can muve around the cursor in the text. Cursor does not goes to the end of line when I press backspace. It's only deletes that alphabet. The code you provided is not sufficient enough. We need a full reproducible code. There is editional components in there and no xml and tss code. Please attach a full reproducible code that regenerates the issue in iOS.
       index.xml
       <Alloy>
         <Window>
             <TextArea>
               <AttributedString>
                   Alloy is great!
               </AttributedString>
             </TextArea>
         </Window>
       </Alloy>
       
       index.tss
       "AttributedString" : {
         attributes: [
           {
             type: Ti.UI.ATTRIBUTE_FOREGROUND_COLOR,
             value: 'red',
             range: [0, 5]
           },
           {
             type: Ti.UI.ATTRIBUTE_UNDERLINES_STYLE,
             value: Ti.UI.ATTRIBUTE_UNDERLINE_STYLE_SINGLE,
             range: [9, 5]
           }
         ]
       }
       

JSON Source