WordPress.org

Ready to get started?Download WordPress

Forums

Extending wp_editor to include HTML5 data- attributes (1 post)

  1. Aaron Dicks
    Member
    Posted 10 months ago #

    I'm trying to use jqBootstrapValidation on my theme. It relies on being able to detect HTML5 validation elements on form elements, along with it's own recognisable data API.
    I need to have the wp_editor screen recognised as 'required' and add a minlength attribute too; minlength="10"
    Is there a way to programatically add this to thw wp_editor, or are there any other custom filters that I can be using to make this a little easier for myself?
    Failing this, I think I'll need to write some custom JS on the AJAX POST...

    Any help would really be appreciated!

    For those unfamiliar with the plugin, it's here

Reply

You must log in to post.

About this Topic