mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged 3.1 to HEAD
13275: updated web-client to use tinymce v3 13276: overlay display fix for when field has large content git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13585 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
56
source/web/scripts/tiny_mce/classes/ui/Container.js
vendored
Executable file
56
source/web/scripts/tiny_mce/classes/ui/Container.js
vendored
Executable file
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* $Id: Container.js 520 2008-01-07 16:30:32Z spocke $
|
||||
*
|
||||
* @author Moxiecode
|
||||
* @copyright Copyright <20> 2004-2008, Moxiecode Systems AB, All rights reserved.
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
* @class This class is the base class for all container controls like toolbars. This class should not
|
||||
* be instantiated directly other container controls should inherit from this one.
|
||||
* @member tinymce.ui.Container
|
||||
* @base tinymce.ui.Control
|
||||
*/
|
||||
tinymce.create('tinymce.ui.Container:tinymce.ui.Control', {
|
||||
/**
|
||||
* Base contrustor a new container control instance.
|
||||
*
|
||||
* @param {String} id Control id to use for the container.
|
||||
* @param {Object} s Optional name/value settings object.
|
||||
*/
|
||||
Container : function(id, s) {
|
||||
this.parent(id, s);
|
||||
this.controls = [];
|
||||
this.lookup = {};
|
||||
},
|
||||
|
||||
/**#@+
|
||||
* @method
|
||||
*/
|
||||
|
||||
/**
|
||||
* Adds a control to the collection of controls for the container.
|
||||
*
|
||||
* @param {tinymce.ui.Control} c Control instance to add to the container.
|
||||
* @return {tinymce.ui.Control} Same control instance that got passed in.
|
||||
*/
|
||||
add : function(c) {
|
||||
this.lookup[c.id] = c;
|
||||
this.controls.push(c);
|
||||
|
||||
return c;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns a control by id from the containers collection.
|
||||
*
|
||||
* @param {String} n Id for the control to retrive.
|
||||
* @return {tinymce.ui.Control} Control instance by the specified name or undefined if it wasn't found.
|
||||
*/
|
||||
get : function(n) {
|
||||
return this.lookup[n];
|
||||
}
|
||||
|
||||
/**#@-*/
|
||||
});
|
||||
|
Reference in New Issue
Block a user