I dont want to close the editor

I dont want to close the editor

erickmterickmt Posts: 15Questions: 3Answers: 1

Is possible do not close the editor when I am click out the modal? I wold like that it closes only in the x.

Replies

  • allanallan Posts: 62,377Questions: 1Answers: 10,234 Site admin

    Absolutely - the onBackground option of the form-options provides that ability.

    Allan

  • erickmterickmt Posts: 15Questions: 3Answers: 1

    That almost work to me. Can you help me? Why the buttons were hidden when I use that? I wold like that it works in the button and with de create option

        $('#cliente').on( 'click', 'tbody td', function () {
            editor.edit( this, {
                onBackground: 'none'
            } );
        } );
    
    
  • allanallan Posts: 62,377Questions: 1Answers: 10,234 Site admin

    I would suggest setting it using formOptions.main rather than calling edit() (assuming you are using the Buttons provided for Editor). If you use edit() directly you would also need to set the buttons() and title() methods.

    Allan

This discussion has been closed.