diff --git a/plugin/editor/cheditor5/imageUpload/upload.php b/plugin/editor/cheditor5/imageUpload/upload.php index 0c345ed86..0d675e91b 100644 --- a/plugin/editor/cheditor5/imageUpload/upload.php +++ b/plugin/editor/cheditor5/imageUpload/upload.php @@ -69,6 +69,8 @@ if( !$is_editor_upload ){ exit; } +run_event('cheditor_photo_upload', $data_dir, $data_url); + //---------------------------------------------------------------------------- // // diff --git a/plugin/editor/smarteditor2/photo_uploader/popup/php/index.php b/plugin/editor/smarteditor2/photo_uploader/popup/php/index.php index 510ac0f24..65d69c051 100644 --- a/plugin/editor/smarteditor2/photo_uploader/popup/php/index.php +++ b/plugin/editor/smarteditor2/photo_uploader/popup/php/index.php @@ -40,6 +40,8 @@ if( isset($_GET['_nonce']) && ft_nonce_is_valid( $_GET['_nonce'] , 'smarteditor' } if( $is_editor_upload ) { + + run_event('smarteditor_photo_upload', $data_dir, $data_url); require('UploadHandler.php'); $options = array(