/* * WYMeditor : what you see is What You Mean web-based editor * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/ * Dual licensed under the MIT (MIT-license.txt) * and GPL (GPL-license.txt) licenses. * * For further information visit: * http://www.wymeditor.org/ * * File Name: * jquery.wymeditor.tidy.js * HTML Tidy plugin for WYMeditor * * File Authors: * Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg) */ //Extend WYMeditor WYMeditor.editor.prototype.tidy = function(options) { var tidy = new WymTidy(options, this); return(tidy); }; //WymTidy constructor function WymTidy(options, wym) { options = jQuery.extend({ sUrl: wym._options.basePath + "plugins/tidy/tidy.php", sButtonHtml: "