Update editor select field ipOpts from Bootstrap Modal

Update editor select field ipOpts from Bootstrap Modal

tomduketomduke Posts: 9Questions: 1Answers: 0

Hi,

I'm trying to update the options for an editor select field from a Bootstrap modal.

I can target the datatable using:

var table = $('#example').DataTable();

and then do something like:

table.row.add(dataToAdd).draw();

but when I try to change some editor options using:

editor.field("field_name").update(newIpOpts);

I get an 'editor not defined' error. Is there some way to target the specific editor on the page?

Thanks
- Tom

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    Hi,

    The error suggests that you don't have an editor variable, or possibly that it isn't available in the current execution scope.

    Do you assign the returned value from new $.fn.dataTable.Editor(...) to a variable?

    Allan

This discussion has been closed.