Created
October 21, 2010 19:39
-
-
Save santiago/639162 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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