Revision: 7454
http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7454&view=rev
Author: vargenau
Date: 2010-05-31 13:02:02 +0000 (Mon, 31 May 2010)
Log Message:
-----------
Remove unused code
Modified Paths:
--------------
trunk/lib/WysiwygEdit/htmlarea2.php
Modified: trunk/lib/WysiwygEdit/htmlarea2.php
===================================================================
--- trunk/lib/WysiwygEdit/htmlarea2.php 2010-05-31 12:59:14 UTC (rev 7453)
+++ trunk/lib/WysiwygEdit/htmlarea2.php 2010-05-31 13:02:02 UTC (rev 7454)
@@ -16,8 +16,6 @@
class WysiwygEdit_htmlarea2 extends WysiwygEdit {
function Head($name='edit[content]') {
- //if (isBrowserIE() and browserVersion() >= 5.5) return $this->Head_IEonly();
-
return JavaScript("
_editor_url = \"".DATA_PATH."/themes/default/htmlarea2/\";
var win_ie_ver = parseFloat(navigator.appVersion.split(\"MSIE\")[1]);
@@ -39,26 +37,11 @@
// version 2
function Textarea($textarea,$wikitext,$name='edit[content]') {
$out = HTML($textarea);
- // some more custom links
- //$out->pushContent(HTML::a(array('href'=>"javascript:editor_insertHTML('".$name."',\"<font style='background-color: yellow'>\",'</font>',1)"),_("Highlight selected text")));
- //$out->pushContent(HTML("\n"));
$out->pushContent(JavaScript("editor_generate('".$name."');",
array('version' => 'JavaScript1.2',
'defer' => 1)));
return $out;
- //return "\n".'<script language="JavaScript1.2" defer> editor_generate(\'CONTENT\'); </script>'."\n";
}
-
- // for testing only
- function Head_IEonly() {
- return HTML(JavaScript("_editor_url = \"".DATA_PATH."/themes/default/htmlarea2/\""),
- "\n",
- JavaScript("",
- array('version' => 'JavaScript1.2',
- 'type' => 'text/javascript',
- 'src' => DATA_PATH."/themes/default/htmlarea2/editor.js")));
- }
-
}
// Local Variables:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|