owner.setnewcolor(c); new LzDelegate(this, 'updatecolor', obj, 'onbgcolor'); updatecolor(); setAttribute('color', this.obj.bgcolor); this.obj.setAttribute('bgcolor', c); // updatecolor was getting white when color == null ??? setAttribute('color', c); setAttribute('editing', true); lz.Focus.setFocus(editbox); this.globalMouseDel = new LzDelegate( this, "checkMouse" ); super.init(); this.globalMouseDel.register( lz.GlobalMouse, "onmousedown" ); parent.setAttribute( 'editing' , false ); if ( !this.containsPt( this.getMouse( 'x' ) , this.getMouse( 'y' ) ) ){ parent.setAttribute( 'editing' ,false ); } if ( k == 13 ){ parent.setAttribute( "editing" , false ); } if (this.editing == false) { if (this.isnumber) this.obj.setAttribute(prop, Number(text)); else this.obj.setAttribute(prop, text); } open defaultplacement view when opening canvas, show all component helpers