Topic: WYSIWYG Validation

LCleobury free asked 4 years ago


Is it possible to add custom validation with messaging to the WYSIWYG editor?

At present I can add required and validate which stops my form progressing but I have no user feedback on this specific field.

Resources (screenshots, code snippets etc.)

 <div class="row">
                            <div class="col-lg">
                                <label class="wysiwyg-label">Details</label>
                                <textarea class="validate" id="details" aria-describedby="details" placeholder="" rows="6" name="data.ListItem.Details" required>@Html.Raw(Model.ListItem.Details)</textarea>
                            </div>
                        </div>



$('.mdb-wysiwyg-textarea').addClass('form-control').prop('required', true);

MDBootstrap staff answered 4 years ago


Hi LCleobury,

Right now we do not grant predefined validation to the WYSIWYG text editor but you can create your custom one. We have ready tutorial in this article about the whole proces: https://mdbootstrap.com/articles/jquery/validate-forms-with-validate-js/

If you need additional help I am here for you.

Best Regards, Piotr



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.10
  • Device: All
  • Browser: All
  • OS: W10
  • Provided sample code: No
  • Provided link: No