mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-13 13:50:07 +00:00
[aloha] upgraded to 0.22.7 and added textcolor plugin
* textcolor: fixed plugin bugs, added translation for zh * image: fixed default.jpg src bug * added 'ru' support for seaf edit * rm aloha-0.22.3 and ununsed files in aloha-0.22.7
This commit is contained in:
33
media/aloha-0.22.7/plugins/common/ui/lib/text.js
Normal file
33
media/aloha-0.22.7/plugins/common/ui/lib/text.js
Normal file
@@ -0,0 +1,33 @@
|
||||
define([
|
||||
"jquery",
|
||||
"ui/component"
|
||||
],
|
||||
function( jQuery, Component ) {
|
||||
/**
|
||||
* Text component type
|
||||
* @class
|
||||
* @extend {Component}
|
||||
*/
|
||||
var Text = Component.extend({
|
||||
/**
|
||||
* Initializes the text component
|
||||
* @override
|
||||
*/
|
||||
init: function() {
|
||||
this._super();
|
||||
this.element = jQuery( "<input>" )
|
||||
.bind( "change", jQuery.proxy(function( event ) {
|
||||
this.setValue( event.target.value );
|
||||
}, this ) );
|
||||
},
|
||||
|
||||
// invoked when the user has changed the value
|
||||
/**
|
||||
* Sets the value of the text field
|
||||
* @param {string} value
|
||||
*/
|
||||
setValue: function( value ) {}
|
||||
});
|
||||
|
||||
return Text;
|
||||
});
|
Reference in New Issue
Block a user