We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16278
    • 928 Posts
    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

    This question has been answered by kp52. See the first response.

    • discuss.answer
      • 16278
      • 928 Posts
      I have tracked this down to a bug in assets/plugins/tinymce/js/mce_init.js.inc. See GitHub issues.

      :) KP
      • Thanks for your research!