Skip to content

Instantly share code, notes, and snippets.

@santiago
Created October 21, 2010 19:39
Show Gist options
  • Save santiago/639162 to your computer and use it in GitHub Desktop.
Save santiago/639162 to your computer and use it in GitHub Desktop.
_remove_editor: function() {
var $el= this.element;
$el.attr("style",null);
var content= this._wysiwyg.wysiwyg("getContent");
this._wysiwyg.wysiwyg("destroy");
$el.html(content);
this._reset(); // cuando esta línea está presente ninguna de las líneas anteriores se llama
this.destroy();
}
_reset: function() {
var $el= this.element;
var self= this;
$el.css({
float: "left",
"margin-top": 0,
"width": "100%"
});
$el.click(function(e) {
self._open_editor();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment