I have a sencha touch based mobile site and app. I am not getting android/iphone default context menu of copy / pasting when i tap on it for long time.
Please suggest how can we do that.
Thanks in advance
I have a sencha touch based mobile site and app. I am not getting android/iphone default context menu of copy / pasting when i tap on it for long time.
Please suggest how can we do that.
Thanks in advance
So you want to prevent the device from showing the copy/paste?
Mitchell Simoens @LikelyMitch
Check out my GitHub:
https://github.com/mitchellsimoens
Posts are my own, not any current, past or future employer's.
No,
I want to show the devive's default context menu on long tap. Somehow its not coming in Sencha 2.2 but its there in sencha 2.0. I am not sure if its a bug or some extra config i need to pass.
Here is the thing:
ON long tap of textfield or textarea I should get the copy/paste menu. IF if the textbox is empty it should show paste option but its not coming.
{
xtype : 'textareafield',
id : 'pfAnswer',
name : 'pfAnswer',
placeHolder : 'Please write your answer here...',
style : {
marginBottom : '10px',
width : '97%',
marginLeft : '5px',
fontSize : '12px',
border : '2px solid #000'
}
Thanks in advance
Please refer to below two links:
http://try.sencha.com/touch/2.0.0/do....1/viewer.html
http://try.sencha.com/touch/2.2.0/docs/Ext.field.TextArea.1/viewer.html
ON android first one gives the android copy paste menu but second one does not. I am facing the smae problem in my live app also.
We have the same issue on iOS. But the above case work fine... Another test is banally the Kitchen sink.
With ST until 2.2.0 User Interface -> Forms -> Toolbar Inputs search and text field let user double tap or longtap to show the native selection, copy and paste option (or the iOS mirror glass).
The 2.2.1 kitchen sink disable anything except single tap. No select all, no copy, no paste, no mirror glass...
Tested with iPad mini iOS 6.1, iPad2 iOS 5.1.
With Android 4.1.2 works fine.
Guys in Sencha, it's impossible to edit anything on iOS because of this bug. Cursor can be only on start of input and can't be positioned at the end. To edit user can only CLEAR all cantent in input control and RETYPE whole value.
I've found a workaround. You just need to add:
Forum thread: http://www.sencha.com/forum/showthread.php?265533-ST-2.2.1-Cannot-move-cursor-in-TextField-TextAreaField-in-iOSCode:Ext.event.publisher.TouchGesture.prototype.isNotPreventable = /(?:)/;
This helped me allot. I added this to the launch function in app.js : Ext.event.publisher.TouchGesture.prototype.isNotPreventable = /^(select|a|input|textarea)$/i;
I tested on android and it works. I still have to do a big test on the iPhone.