Uncaught TypeError: Cannot read property 'Editor' of undefined

Uncaught TypeError: Cannot read property 'Editor' of undefined

ES_CWES_CW Posts: 3Questions: 1Answers: 0

Hello all,

I am getting this error on the trial version (just got it yesterday) of editor ver 1.7.2. I saw previous posts on the issue, so I made sure jquery is only loaded once (checked markup and in Network in Chrome). I then commented out all other javascript and library references, except for ones needed by Editor. Lastly, I double-checked that I have all the proper js and css added. So, at this point, I cannot do the following line without an error. Thoughts?

<script type="text/javascript">
    var editor;

    $(document).ready(function () {

        editor = new $.fn.datatable.Editor({});

    });
</script>

This question has an accepted answers - jump to answer

Answers

  • ES_CWES_CW Posts: 3Questions: 1Answers: 0

    Note: I read the post on providing examples to get help. I am working on it, but it may take a very long time. There is a lot of code, and many internal library references that I will have to convert to CDN references. To be continued. In the meantime, any suggestions would be welcome.

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
    Answer ✓

    Case-sensitivity.

    new $.fn.dataTable.Editor( {
    
  • ES_CWES_CW Posts: 3Questions: 1Answers: 0

    You are correct. I am humbled by such an obvious mistake, but I appreciate your help.

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    We have all done it!

This discussion has been closed.