Execute Custom PHP Function

Execute Custom PHP Function

alf007alf007 Posts: 37Questions: 15Answers: 0

Hi!

I would like to know how can I execute a custom php function in the preEdit event.

Thanks

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,799Questions: 1Answers: 10,514 Site admin
    Answer ✓

    Is this in the server-side preEdit event? If so, then it should be as simple as defining a closure that will execute your function:

        ->on( 'preEdit', function ( $editor, $values ) {
            myFunction();
        } )
    

    Allan

  • alf007alf007 Posts: 37Questions: 15Answers: 0

    Thank you!

This discussion has been closed.