"Create" button disappears.

"Create" button disappears.

mujahmujah Posts: 8Questions: 4Answers: 0
edited August 2016 in Free community support

I created editor and

..on any click,
function{
editor.create();
editor.open();
}

form new dialog appears, but there is missing "Create" button on dialog, means( there are no any button on dialog), do I missing anything?

I am trying to open "Create" dialog on my event.

https://gmkr.io/s/57c727a9282be2c00a8864d0/0

This question has an accepted answers - jump to answer

Answers

  • mujahmujah Posts: 8Questions: 4Answers: 0

    I was trying to put "new" button on last row of datatables,
    and I am trying to open editor open(create) dialog.

  • mujahmujah Posts: 8Questions: 4Answers: 0
    edited August 2016

    I am trying to manipulate, open dialog function,
    like:
    if some logic , open create dialog, else open other dialog etc.

  • allanallan Posts: 61,452Questions: 1Answers: 10,055 Site admin
    Answer ✓

    The issue is that you've not configured it with any buttons. You can do that with buttons() or using the form-options object:

    editor.create( {
      buttons: 'Submit'
    } );
    

    Allan

This discussion has been closed.