"editor.file() is not a function" error . table.file() is

"editor.file() is not a function" error . table.file() is

naktunaktu Posts: 6Questions: 4Answers: 0

While i was using this front page example.
editor.datatables.net/examples/advanced/upload.html
I got the "editor.file is not a function" error

However, example in the file() api uses table.file() instead of editor.file()
datatables.net/reference/api/file()
I blindly changed bot editor.file() lines to table.file() and the error is gone.

I tried first example as it is when i first bought the license and as far as i can remember it was working correctly. Is table.file() and editor.file() different in any way ? .
More precisely, is there a difference between these file() functions or am i getting paranoid on a scope issue?

Answers

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin

    What version of Editor are you using? As the file() documentation notes, it was introduced there in v1.5. It should be available on both the table and the Editor instances now.

    Allan

This discussion has been closed.