editor.close() parameters

editor.close() parameters

pmengopmengo Posts: 74Questions: 37Answers: 2

Is there a way to send a parameter, like ex: editor.close('whatever') when the editor closes and catch this parameter in
editor.on('close', function (e, data, action) {

Apreciate your help

Answers

  • allanallan Posts: 61,984Questions: 1Answers: 10,162 Site admin

    No sorry. You'd need to do something like:

    var myVariable = 1;
    
    editor.on( 'close', function () {
      // use myVariable
    } );
    
    editor.close();
    

    Allan

This discussion has been closed.