|
|
@ -968,7 +968,10 @@ define([
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
tag: tag,
|
|
|
|
tag: tag,
|
|
|
|
getValue: function () { return $text.val().slice(0, opts.maxLength); },
|
|
|
|
getValue: function () { return $text.val().slice(0, opts.maxLength); },
|
|
|
|
setValue: function (val) { $text.val(val); },
|
|
|
|
setValue: function (val) {
|
|
|
|
|
|
|
|
$text.val(val);
|
|
|
|
|
|
|
|
updateChar();
|
|
|
|
|
|
|
|
},
|
|
|
|
edit: function (cb, tmp) {
|
|
|
|
edit: function (cb, tmp) {
|
|
|
|
var v = Util.clone(opts);
|
|
|
|
var v = Util.clone(opts);
|
|
|
|
return editTextOptions(v, setCursorGetter, cb, tmp);
|
|
|
|
return editTextOptions(v, setCursorGetter, cb, tmp);
|
|
|
|