diff --git src/wp-includes/js/tinymce/plugins/image/plugin.js src/wp-includes/js/tinymce/plugins/image/plugin.js
index accfda8..db72ac2 100644
|
|
|
define(
|
| 350 | 350 | recalcSize(); |
| 351 | 351 | |
| 352 | 352 | data = Tools.extend(data, win.toJSON()); |
| | 353 | var wpcaption = data.wpcaption; // WP |
| 353 | 354 | |
| 354 | 355 | if (!data.alt) { |
| 355 | 356 | data.alt = ''; |
| … |
… |
define(
|
| 385 | 386 | }; |
| 386 | 387 | |
| 387 | 388 | editor.undoManager.transact(function () { |
| | 389 | // WP |
| | 390 | var eventData = { node: imgElm, data: data, wpcaption: wpcaption }; |
| | 391 | |
| | 392 | editor.fire( 'wpImageFormSubmit', { imgData: eventData } ); |
| | 393 | |
| | 394 | if ( eventData.cancel ) { |
| | 395 | waitLoad( eventData.node ); |
| | 396 | return; |
| | 397 | } |
| | 398 | // WP end |
| | 399 | |
| 388 | 400 | if (!data.src) { |
| 389 | 401 | if (imgElm) { |
| 390 | 402 | dom.remove(imgElm); |