X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2Fbootstrap%2Fform%2FHtmlEditor.js;h=af2252cadb1b0788958c54adb52dcb8e29cc7206;hb=45c0cfffe7dfc381cd802d06b9ab8ff771931362;hp=e86dab7693742b3304950575d15f4b451b825df0;hpb=9bd0018a15fbfe826a4b3d236f7befff65293508;p=roojs1 diff --git a/Roo/bootstrap/form/HtmlEditor.js b/Roo/bootstrap/form/HtmlEditor.js index e86dab7693..af2252cadb 100644 --- a/Roo/bootstrap/form/HtmlEditor.js +++ b/Roo/bootstrap/form/HtmlEditor.js @@ -115,10 +115,9 @@ Roo.extend(Roo.bootstrap.form.HtmlEditor, Roo.bootstrap.form.TextArea, { btns : [], /** - * @cfg {String} resizable 's' or 'se' or 'e' - wrapps the element in a - * Roo.resizable. + * @cfg {String} resize (none|both|horizontal|vertical) - css resize of element */ - resizable : false, + resize : false, /** * @cfg {Number} height (in pixels) */ @@ -197,33 +196,11 @@ Roo.extend(Roo.bootstrap.form.HtmlEditor, Roo.bootstrap.form.TextArea, { this.editorcore.onRender(ct, position); - if (this.resizable) { - this.resizeEl = new Roo.Resizable(this.wrap, { - pinned : true, - wrap: true, - dynamic : true, - minHeight : this.height, - height: this.height, - handles : this.resizable, - width: this.width, - listeners : { - resize : function(r, w, h) { - _t.onResize(w,h); // -something - } - } - }); - - } + this.createToolbar(this); - if(!this.width && this.resizable){ - this.setSize(this.wrap.getSize()); - } - if (this.resizeEl) { - this.resizeEl.resizeTo.defer(100, this.resizeEl,[ this.width,this.height ] ); - // should trigger onReize.. - } + }, @@ -294,9 +271,9 @@ Roo.extend(Roo.bootstrap.form.HtmlEditor, Roo.bootstrap.form.TextArea, { //this.deferFocus(); } - if(this.resizable){ - this.setSize(this.wrap.getSize()); - } + //if(this.resizable){ + // this.setSize(this.wrap.getSize()); + //} this.fireEvent('editmodechange', this, this.editorcore.sourceEditMode); },