#6063: validate object in javascrip
Merge pull request #6067 from dotCMS/issue-6063-WYSIWYG-validation

#6063: validate object in javascrip