PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

adding markdown to a textarea

  1. shamguy4
    Member

    how can I use the hook for before submitting a form, to get each textarea individually and apply a function to it?
    ive been working with this:
    i need some sort of for each loop to grab each one and then apply the markdown before submission.
    also... is there a way to add a media button to a textarea?

    add_action("gform_pre_submission", "pre_submission_handler");

    function pre_submission_handler($form){
    //use markdown
    $_POST["input_14"] = Markdown($my_text);

    }

    Posted 11 years ago on Friday April 12, 2013 | Permalink