refactoring of miaou.editor to remove the API ambiguity related to the use of $.fn.