blitzer109
asked on
How can I make TinyMCE compatible with the jQuery Validation Extension
I have a form that contains a TinyMCE WYSIWYG Element replacing a text area for the description and I am trying to make the contents of this available for validation via the excellent jQuery Validation Plugin (http://bassistance.de/jquery-plugins/jquery-plugin-validation/)
I have found various code snippets via Google but they are either incomplete or do not work for me.
How can I make the contents of the TinyMCE element available for validation please.
I have found various code snippets via Google but they are either incomplete or do not work for me.
How can I make the contents of the TinyMCE element available for validation please.
<script type="text/javascript" src="../../assets/js/jquery/additional-validation-methods.js"></script>
<script type="text/javascript">
// <![CDATA[
// jQuery calls start here. No need for $(document).ready() here.
// Define the div containing validation messages
var container = $('#clientErrorWrapper');
// Start validation routine
var validator = $("#frmInsert").validate({
debug: false,
errorContainer: container,
errorLabelContainer: $("ul", container),
wrapper: 'li',
rules: {
// start rules
title: {
required: true,
alphanumericwithbasicpunc: true
},
fk: {
required: true,
digits: true
},
details: {
required: true,
alphanumericwithbasicpunc: true
},
image: {
required: true,
accept: "gif|jpg|jpeg|png"
},
sortorder: {
required: true,
digits: true
}
//finish rules
}
});
// ]]>
</script>
ASKER
I'm sorry that is not the answer I am looking for, I already have TinyMCE installed and working but I need to make it compatible with the validation plugin.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Check that out on:
http://dev.jquery.com/wiki/Plugins/tinyMCE
More Discussion at:
http://groups.google.com/group/jquery-en/browse_thread/thread/1b48a79e81a02a80
Hope this will help.