This property defines the pointer mode the application will run in. This mode adds tweaks, enhancements and optimizations for various pointer device types.
The following String
values are valid for this property:
'touch'
— Forces the editor into touch mode and does not allow the user to override this.
'mouse'
— Forces the editor into mouse mode and does not allow the user to override this.
'auto'
— When set to auto iOS and Android devices will run in touch mode. All other
devices will run in mouse mode. When running in this mode the user will be able to override this
behavior if it is not appropriate for their needs.
The default is auto
if the device supports touch and mouse
if it does not.
Note — This property must be set before the startup() method has been called. Setting it after startup has been called will result in an exception.
To set the value of this property, use the ESDWeb object's set method as illustrated below.
To set the enableTouchMode property:
editor = new ESDWeb(null, 'editorNode'); editor.set('pointerDevice', 'touch'); /* set other properties here */ editor.startup(...);
To get the pointerDevice property:
var pointerDevice = editor.get('pointerDevice');