diff options
Diffstat (limited to 'websdk/static/js/wymeditor/plugins/tidy')
-rw-r--r-- | websdk/static/js/wymeditor/plugins/tidy/.svn/entries | 164 | ||||
-rw-r--r-- | websdk/static/js/wymeditor/plugins/tidy/.svn/prop-base/wand.png.svn-base | 5 | ||||
-rw-r--r-- | websdk/static/js/wymeditor/plugins/tidy/.svn/text-base/README.svn-base | 19 | ||||
-rw-r--r-- | websdk/static/js/wymeditor/plugins/tidy/.svn/text-base/jquery.wymeditor.tidy.js.svn-base | 82 | ||||
-rw-r--r-- | websdk/static/js/wymeditor/plugins/tidy/.svn/text-base/tidy.php.svn-base | 36 | ||||
-rw-r--r-- | websdk/static/js/wymeditor/plugins/tidy/.svn/text-base/wand.png.svn-base | bin | 715 -> 0 bytes | |||
-rw-r--r-- | websdk/static/js/wymeditor/plugins/tidy/README | 19 | ||||
-rw-r--r-- | websdk/static/js/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js | 82 | ||||
-rw-r--r-- | websdk/static/js/wymeditor/plugins/tidy/tidy.php | 36 | ||||
-rw-r--r-- | websdk/static/js/wymeditor/plugins/tidy/wand.png | bin | 715 -> 0 bytes |
10 files changed, 0 insertions, 443 deletions
diff --git a/websdk/static/js/wymeditor/plugins/tidy/.svn/entries b/websdk/static/js/wymeditor/plugins/tidy/.svn/entries deleted file mode 100644 index 3acea50..0000000 --- a/websdk/static/js/wymeditor/plugins/tidy/.svn/entries +++ /dev/null @@ -1,164 +0,0 @@ -10 - -dir -677 -svn://svn.wymeditor.org/wymeditor/trunk/src/wymeditor/plugins/tidy -svn://svn.wymeditor.org/wymeditor - - - -2010-04-11T19:34:57.530630Z -658 -mr_lundis - - - - - - - - - - - - - - -89e89e35-0a13-0410-8f61-920bba073fa9 - -tidy.php -file - - - - -2011-07-13T16:45:39.000000Z -3355fbc23378052db8213dbdcd4fe31f -2007-04-26T12:45:23.848206Z -245 -jf.hovinne - - - - - - - - - - - - - - - - - - - - - -1052 - -jquery.wymeditor.tidy.js -file - - - - -2011-07-13T16:45:39.000000Z -3a2dee9a16df26d6d1b36886f77880c8 -2010-04-11T19:34:57.530630Z -658 -mr_lundis - - - - - - - - - - - - - - - - - - - - - -2157 - -wand.png -file - - - - -2011-07-13T16:45:39.000000Z -22d8038ebf5ac63b0062ebf361e8261c -2007-04-23T11:42:06.279227Z -233 -d.reszka -has-props - - - - - - - - - - - - - - - - - - - - -715 - -README -file - - - - -2011-07-13T16:45:39.000000Z -b31aaf6b3928608a98b2028c2d9f523e -2009-05-27T19:20:55.910061Z -632 -jf.hovinne - - - - - - - - - - - - - - - - - - - - - -607 - diff --git a/websdk/static/js/wymeditor/plugins/tidy/.svn/prop-base/wand.png.svn-base b/websdk/static/js/wymeditor/plugins/tidy/.svn/prop-base/wand.png.svn-base deleted file mode 100644 index 5e9587e..0000000 --- a/websdk/static/js/wymeditor/plugins/tidy/.svn/prop-base/wand.png.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:mime-type -V 24 -application/octet-stream -END diff --git a/websdk/static/js/wymeditor/plugins/tidy/.svn/text-base/README.svn-base b/websdk/static/js/wymeditor/plugins/tidy/.svn/text-base/README.svn-base deleted file mode 100644 index acc7ffd..0000000 --- a/websdk/static/js/wymeditor/plugins/tidy/.svn/text-base/README.svn-base +++ /dev/null @@ -1,19 +0,0 @@ -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: - README - HTML Tidy plugin for WYMeditor - -File Authors: - Jean-François Hovinne (jf.hovinne a-t wymeditor dotorg) - -Credits: - 'HTML Tidy' by Dave Ragget - http://tidy.sourceforge.net/ - Icon 'wand' by Mark James - http://famfamfam.com/ - -WYMeditor documentation is available online at http://www.wymeditor.org/ diff --git a/websdk/static/js/wymeditor/plugins/tidy/.svn/text-base/jquery.wymeditor.tidy.js.svn-base b/websdk/static/js/wymeditor/plugins/tidy/.svn/text-base/jquery.wymeditor.tidy.js.svn-base deleted file mode 100644 index bf30c4c..0000000 --- a/websdk/static/js/wymeditor/plugins/tidy/.svn/text-base/jquery.wymeditor.tidy.js.svn-base +++ /dev/null @@ -1,82 +0,0 @@ -/* - * 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: "<li class='wym_tools_tidy'>" - + "<a name='CleanUp' href='#'" - + " style='background-image:" - + " url(" + wym._options.basePath + "plugins/tidy/wand.png)'>" - + "Clean up HTML" - + "</a></li>", - - sButtonSelector: "li.wym_tools_tidy a" - - }, options); - - this._options = options; - this._wym = wym; - -}; - -//WymTidy initialization -WymTidy.prototype.init = function() { - - var tidy = this; - - jQuery(this._wym._box).find( - this._wym._options.toolsSelector + this._wym._options.toolsListSelector) - .append(this._options.sButtonHtml); - - //handle click event - jQuery(this._wym._box).find(this._options.sButtonSelector).click(function() { - tidy.cleanup(); - return(false); - }); - -}; - -//WymTidy cleanup -WymTidy.prototype.cleanup = function() { - - var wym = this._wym; - var html = "<html><body>" + wym.xhtml() + "</body></html>"; - - jQuery.post(this._options.sUrl, { html: html}, function(data) { - - if(data.length > 0 && data != '0') { - if(data.indexOf("<?php") == 0) { - wym.status("Ooops... Is PHP installed?"); - } else { - wym.html(data); - wym.status("HTML has been cleaned up."); - } - } else { - wym.status("An error occurred."); - } - }); -}; diff --git a/websdk/static/js/wymeditor/plugins/tidy/.svn/text-base/tidy.php.svn-base b/websdk/static/js/wymeditor/plugins/tidy/.svn/text-base/tidy.php.svn-base deleted file mode 100644 index 23b9bec..0000000 --- a/websdk/static/js/wymeditor/plugins/tidy/.svn/text-base/tidy.php.svn-base +++ /dev/null @@ -1,36 +0,0 @@ -<?php - -if (get_magic_quotes_gpc()) $html = stripslashes($_REQUEST['html']); -else $html = $_REQUEST['html']; - -if(strlen($html) > 0) { - - // Specify configuration - $config = array( - 'bare' => true, - 'clean' => true, - 'doctype' => 'strict', - 'drop-empty-paras' => true, - 'drop-font-tags' => true, - 'drop-proprietary-attributes' => true, - 'enclose-block-text' => true, - 'indent' => false, - 'join-classes' => true, - 'join-styles' => true, - 'logical-emphasis' => true, - 'output-xhtml' => true, - 'show-body-only' => true, - 'wrap' => 0); - - // Tidy - $tidy = new tidy; - $tidy->parseString($html, $config, 'utf8'); - $tidy->cleanRepair(); - - // Output - echo $tidy; -} else { - -echo ('0'); -} -?> diff --git a/websdk/static/js/wymeditor/plugins/tidy/.svn/text-base/wand.png.svn-base b/websdk/static/js/wymeditor/plugins/tidy/.svn/text-base/wand.png.svn-base Binary files differdeleted file mode 100644 index bb55eea..0000000 --- a/websdk/static/js/wymeditor/plugins/tidy/.svn/text-base/wand.png.svn-base +++ /dev/null diff --git a/websdk/static/js/wymeditor/plugins/tidy/README b/websdk/static/js/wymeditor/plugins/tidy/README deleted file mode 100644 index acc7ffd..0000000 --- a/websdk/static/js/wymeditor/plugins/tidy/README +++ /dev/null @@ -1,19 +0,0 @@ -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: - README - HTML Tidy plugin for WYMeditor - -File Authors: - Jean-François Hovinne (jf.hovinne a-t wymeditor dotorg) - -Credits: - 'HTML Tidy' by Dave Ragget - http://tidy.sourceforge.net/ - Icon 'wand' by Mark James - http://famfamfam.com/ - -WYMeditor documentation is available online at http://www.wymeditor.org/ diff --git a/websdk/static/js/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js b/websdk/static/js/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js deleted file mode 100644 index bf30c4c..0000000 --- a/websdk/static/js/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js +++ /dev/null @@ -1,82 +0,0 @@ -/* - * 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: "<li class='wym_tools_tidy'>" - + "<a name='CleanUp' href='#'" - + " style='background-image:" - + " url(" + wym._options.basePath + "plugins/tidy/wand.png)'>" - + "Clean up HTML" - + "</a></li>", - - sButtonSelector: "li.wym_tools_tidy a" - - }, options); - - this._options = options; - this._wym = wym; - -}; - -//WymTidy initialization -WymTidy.prototype.init = function() { - - var tidy = this; - - jQuery(this._wym._box).find( - this._wym._options.toolsSelector + this._wym._options.toolsListSelector) - .append(this._options.sButtonHtml); - - //handle click event - jQuery(this._wym._box).find(this._options.sButtonSelector).click(function() { - tidy.cleanup(); - return(false); - }); - -}; - -//WymTidy cleanup -WymTidy.prototype.cleanup = function() { - - var wym = this._wym; - var html = "<html><body>" + wym.xhtml() + "</body></html>"; - - jQuery.post(this._options.sUrl, { html: html}, function(data) { - - if(data.length > 0 && data != '0') { - if(data.indexOf("<?php") == 0) { - wym.status("Ooops... Is PHP installed?"); - } else { - wym.html(data); - wym.status("HTML has been cleaned up."); - } - } else { - wym.status("An error occurred."); - } - }); -}; diff --git a/websdk/static/js/wymeditor/plugins/tidy/tidy.php b/websdk/static/js/wymeditor/plugins/tidy/tidy.php deleted file mode 100644 index 23b9bec..0000000 --- a/websdk/static/js/wymeditor/plugins/tidy/tidy.php +++ /dev/null @@ -1,36 +0,0 @@ -<?php - -if (get_magic_quotes_gpc()) $html = stripslashes($_REQUEST['html']); -else $html = $_REQUEST['html']; - -if(strlen($html) > 0) { - - // Specify configuration - $config = array( - 'bare' => true, - 'clean' => true, - 'doctype' => 'strict', - 'drop-empty-paras' => true, - 'drop-font-tags' => true, - 'drop-proprietary-attributes' => true, - 'enclose-block-text' => true, - 'indent' => false, - 'join-classes' => true, - 'join-styles' => true, - 'logical-emphasis' => true, - 'output-xhtml' => true, - 'show-body-only' => true, - 'wrap' => 0); - - // Tidy - $tidy = new tidy; - $tidy->parseString($html, $config, 'utf8'); - $tidy->cleanRepair(); - - // Output - echo $tidy; -} else { - -echo ('0'); -} -?> diff --git a/websdk/static/js/wymeditor/plugins/tidy/wand.png b/websdk/static/js/wymeditor/plugins/tidy/wand.png Binary files differdeleted file mode 100644 index bb55eea..0000000 --- a/websdk/static/js/wymeditor/plugins/tidy/wand.png +++ /dev/null |