echo "<label for='$name'>$label:
<textarea class='wymeditor' name='$name' cols='$cols' rows='$rows'>$value</textarea></label>";
Where $value is what goes in the textarea.
This seems to work fine on firefox but not on IE6. Any idea what i'm doing wrong?
Thanks for the good work on this!
/edit
I did some more testing on this, stripping it down to the bare minimum:
- Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>WYMeditor</title>
<link rel="stylesheet" type="text/css" media="screen" href="wymeditor/skins/default/screen.css" />
<script type="text/javascript" src="jquery/jquery.js"></script>
<script type="text/javascript" src="wymeditor/jquery.wymeditor.js"></script>
<script type="text/javascript">
var $j = jQuery.noConflict();
$j(function() {
$j(".wymeditor").wymeditor();
});
</script>
</head>
<body>
<form method="post" action="">
<textarea class="wymeditor">Hello world.</textarea>
<input type="submit" class="wymupdate" />
</form>
</body>
</html>
The above code displays a text box with "hello world" on firefox and a blank text box on IE6.0[/code]