The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Aaron Dicks
    Posted 2 years 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

Topic Closed

This topic has been closed to new replies.

About this Topic