X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..HEAD:/src/form/field/HtmlEditor.js diff --git a/src/form/field/HtmlEditor.js b/src/form/field/HtmlEditor.js index 80674d7c..bdb1d04a 100644 --- a/src/form/field/HtmlEditor.js +++ b/src/form/field/HtmlEditor.js @@ -1,34 +1,45 @@ +/* + +This file is part of Ext JS 4 + +Copyright (c) 2011 Sencha Inc + +Contact: http://www.sencha.com/contact + +GNU General Public License Usage +This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. + +If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. + +*/ /** - * @class Ext.form.field.HtmlEditor - * @extends Ext.Component - * * Provides a lightweight HTML Editor component. Some toolbar features are not supported by Safari and will be * automatically hidden when needed. These are noted in the config options where appropriate. - * + * * The editor's toolbar buttons have tooltips defined in the {@link #buttonTips} property, but they are not - * enabled by default unless the global {@link Ext.tip.QuickTipManager} singleton is {@link Ext.tip.QuickTipManager#init initialized}. - * - * An Editor is a sensitive component that can't be used in all spots standard fields can be used. Putting an Editor within - * any element that has display set to 'none' can cause problems in Safari and Firefox due to their default iframe reloading bugs. + * enabled by default unless the global {@link Ext.tip.QuickTipManager} singleton is + * {@link Ext.tip.QuickTipManager#init initialized}. * - * {@img Ext.form.HtmlEditor/Ext.form.HtmlEditor1.png Ext.form.HtmlEditor component} + * An Editor is a sensitive component that can't be used in all spots standard fields can be used. Putting an + * Editor within any element that has display set to 'none' can cause problems in Safari and Firefox due to their + * default iframe reloading bugs. * - * ## Example usage + * # Example usage * - * {@img Ext.form.HtmlEditor/Ext.form.HtmlEditor2.png Ext.form.HtmlEditor component} + * Simple example rendered with default options: * - * // Simple example rendered with default options: - * Ext.tip.QuickTips.init(); // enable tooltips + * @example + * Ext.tip.QuickTipManager.init(); // enable tooltips * Ext.create('Ext.form.HtmlEditor', { * width: 580, * height: 250, - * renderTo: Ext.getBody() + * renderTo: Ext.getBody() * }); - * - * {@img Ext.form.HtmlEditor/Ext.form.HtmlEditor2.png Ext.form.HtmlEditor component} - * - * // Passed via xtype into a container and with custom options: - * Ext.tip.QuickTips.init(); // enable tooltips + * + * Passed via xtype into a container and with custom options: + * + * @example + * Ext.tip.QuickTipManager.init(); // enable tooltips * new Ext.panel.Panel({ * title: 'HTML Editor', * renderTo: Ext.getBody(), @@ -42,11 +53,6 @@ * enableAlignments: false * } * }); - * - * @constructor - * Create a new HtmlEditor - * @param {Object} config - * @xtype htmleditor */ Ext.define('Ext.form.field.HtmlEditor', { extend:'Ext.Component', @@ -66,10 +72,10 @@ Ext.define('Ext.form.field.HtmlEditor', { ], fieldSubTpl: [ - '
', - '