Probem integrating field type plugins with datatable editor
Probem integrating field type plugins with datatable editor
I can't figure out why I can't integrate any field type plugins. The console always outputs **Uncaught Error adding field - unknown field type selectize** (tried select2 and CKEditor)
. I'm current running the trial version. Could this be the reason?
Currently
- script load order has the selectize.min.js loading after the dataTable.editor.min.js script
- selectize is being initialized using the fields.type option.
fields: [ {
label: "Category:",
name: "category_name",
type: "selectize"
}, {
label: "Subcategory:",
name: "subcategory_name",
type: "selectize"
}]
This question has an accepted answers - jump to answer
Answers
"selectize" is not a valid field type.
https://editor.datatables.net/reference/field/
Did you fully initialize the Selectize plugin by adding the code listed in the example:
https://editor.datatables.net/plug-ins/field-type/editor.selectize#Javascript
Kevin
Looks like only paid versions of the editor pro allows you to see the initialization code for plugins. You cannot see the code snippet in trial mode. Once I put in the initialization code, everything worked as expected.