Skip to content

Instantly share code, notes, and snippets.

@zanvar
Created May 29, 2009 02:54
Show Gist options
  • Save zanvar/119744 to your computer and use it in GitHub Desktop.
Save zanvar/119744 to your computer and use it in GitHub Desktop.
this.readOnly = true;
this.set('disabled', true);
this.hide();
this.saveHTML();
this.get('iframe').setStyle('visibility', 'hidden');
var iframe = this.get('iframe');
this.set('iframe', this._readOnlyFrame);
this.get('iframe').setStyle('visibility', 'visible');
this.get('iframe').setStyle('height', '100%');
this._setInitialContent();
this.set('iframe', iframe);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment