Skip to content

Commit

Permalink
Merge branch 't/9907b' into major
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Feb 20, 2013
2 parents 1645260 + 2c212d7 commit 3e347c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/preview/plugin.js
Expand Up @@ -57,7 +57,10 @@
iLeft = Math.round( screen.width * 0.1 );
} catch ( e ) {}

editor.fire( 'contentPreview', eventData = { dataValue: sHTML } );
// (#9907) Allow data manipulation before preview is displayed.
// Also don't open the preview window when event cancelled.
if ( !editor.fire( 'contentPreview', eventData = { dataValue: sHTML } ) )
return false;

var sOpenUrl = '';
if ( isCustomDomain ) {
Expand Down

0 comments on commit 3e347c8

Please sign in to comment.