I'm currently adding some customizations to a SharePoint 2013 form using jQuery.
I could add some rules to the 'input' and 'select' elements, but I can't do it for a RichText Editor. Did anyone try it?
$('div[id*="Pepe"][class*="ms-rtestate-write"]').rules('add', {
required: true,
messages:
{
required: 'Pepe is required'
}
});
Turning on the the debug option on $('form').validate(...) I got this error: "Uncaught TypeError: Cannot read property 'nodeType' of undefined"