mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
mw.ViewPageTarget: Fire 'wikipage.content' hook after saving
Bug: 51565 Change-Id: I5b6dcd3cb425d2763cc3069e3cbc04be7a57af4c
This commit is contained in:
parent
f5c8af541a
commit
bdd7aa5e3c
|
@ -2072,7 +2072,8 @@ ve.init.mw.ViewPageTarget.prototype.onWindowPopState = function () {
|
|||
* @param {HTMLElement} html Rendered HTML from server
|
||||
*/
|
||||
ve.init.mw.ViewPageTarget.prototype.replacePageContent = function ( html ) {
|
||||
$( '#mw-content-text' ).html( html );
|
||||
var $content = $( $.parseHTML( html ) );
|
||||
mw.hook( 'wikipage.content' ).fire( $( '#mw-content-text' ).empty().append( $content ) );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue