X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/src/form/field/HtmlEditor.js diff --git a/src/form/field/HtmlEditor.js b/src/form/field/HtmlEditor.js index 945025f1..bdb1d04a 100644 --- a/src/form/field/HtmlEditor.js +++ b/src/form/field/HtmlEditor.js @@ -13,36 +13,33 @@ If you are unsure which license is appropriate for your use, please contact the */ /** - * @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(), @@ -56,7 +53,6 @@ If you are unsure which license is appropriate for your use, please contact the * enableAlignments: false * } * }); - * */ Ext.define('Ext.form.field.HtmlEditor', { extend:'Ext.Component', @@ -76,10 +72,10 @@ Ext.define('Ext.form.field.HtmlEditor', { ], fieldSubTpl: [ - '
', - '