I'm trying to convert a site from MODX 1.0.4 to 1.0.14. It uses a RichText TV and widget for front-end text entry, which works fine in 1.0.4. In 1.0.14, the output from the widget begins with "undefined" instead of the opening P tag. The closing tag is normal. I get this result using a bare install of 1.0.14 and the test setup below. The "undefined" is visible using the HTML button from the editor toolbar before the input page is submitted. It doesn't happen in the same RichText TV's input box in the back end.
Any ideas?
The TV:
Name: testRich
Type: RichText
Widget: RichText
Editor: TinyMCE
Reporting snippet:
<?php
// ShowPost
$output = print_r($_POST, true);
$output = htmlspecialchars($output);
$result = "<pre>" . $output . "</pre>";
return $result;
?>
Test page:
<p>Blah blah blah.</p>
<form action="[~[*id*]~]" method="post">
[*testRich*]
<input value="Submit" type="submit" />
</form>
[!ShowPost? !]
Snippet output for entry "XYZ": undefinedXYZ</p>
??? KP