Source: controls/GlobalEditorManager.js

/**
 * @requirefiles {Iterator.js}
 */

/**
 * Creates an instance of the GlobalEditorManager.
 * @constructor
 */
function GlobalEditorManager() {
    // noinspection JSValidateTypes
    /**
     * List of all managed editors.
     * @name GlobalEditorManager#Editors
     * @type {Editor[]}
     */
    this.Editors = [];
    /**
     * The currently active editor control.
     * @name GlobalEditorManager#ActiveEditor
     * @type {Editor}
     */
    this.ActiveEditor = false;
    /**
     * @typedef {Object} GlobalEditorManager#Font
     * @property {string} [Font.Font="Calibri"]
     * @property {string} [Font.Family="Calibri,sans-serif"]
     * @property {string} [Font.Size="11pt"]
     * @property {string[]} [Font.Styles=["editor-style-normal"]]
     */
    /**
     * The default font applied to editor controls.
     * @name GlobalEditorManager#DefaultFont
     * @type {GlobalEditorManager#Font}
     */
    this.DefaultFont = { Font: 'Calibri', Family: 'Calibri,sans-serif', Size: '11pt', Styles: new Array('editor-style-normal') };
}

/**
 * Triggers Resize event for all editor controls.
 * @name GlobalEditorManager#Resize
 * @function
 */
function GlobalEditorManager_Resize() {
    for (let i = 0; i < EditorGlobal.Editors.length; i++) {
        EditorGlobal.Editors[i].Resize();
    }
}

GlobalEditorManager.prototype.constructor = GlobalEditorManager;
GlobalEditorManager.prototype.Resize = GlobalEditorManager_Resize;

/**
 * Global control management object.
 * @type {GlobalEditorManager}
 * @global
 */
window.EditorGlobal = new GlobalEditorManager();