bug #4720 :  Add a verification of the path in javascript before passing the control to the wysiwyg component