This example shows how to use FormValidation to validate a TinyMCE element.
You should look at the basic principles
when integrating FormValidation with other plugins
The hobbies field must be between 5 and 200 characters long. We can't use the stringLength validator since the hobbies can contain HTML tags generated by the editor.
In order to achieve that, use the callback validator instead:
Instead of using the callback
validator, you can use
option to get the raw text provided by the editor before doing validations
As mentioned in the Compatibility section, the hobbies field must be revalidated when it is changed by the editor:
Below is the working example: