Base solution for your next web application
Open Closed

Text Editor Issue #9005


User avatar
0
razkhan78 created

Hi

We are using latest Asp.Net Core MVC with jQuery.

After focus out of the Text editor, if there is the text then it's give this error.

If I have commented _form.validate() from init method of JS file then error goes out.

I have facing this issue with SummerNote & CKEditor both editor.

How can I fix it?


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi Can you provide steps to reproduce the problem?

  • User Avatar
    0
    razkhan78 created

    Hi,

    I have used the SummerNote Editor to take input.In the JS have initialize the SummerNote with following lines.

    $('#editor').summernote({ height: "200px" });

    Now whenever updating the text of editor and focus out event is occur for the editor it's give above jquery error.

    Then after I have commented the line (_form.validate()) that validate the form,then error goes out.

    Also try to put editor out side the,it is also working.

    I don't event put any kind of validation for this field.I think it is firing some kind of validation for the editor.

  • User Avatar
    0
    razkhan78 created

    hi, Solved this issue by ignoring the validation for the editor with follong lines.

    _$form.validate({ ignore: ".ck-editor *" });