Tpt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/295906

Change subject: Adds support of preload hooks
......................................................................

Adds support of preload hooks

This is not adding support of preload/editintro parameters

Change-Id: I46ade4de02f15444c1ca5731a475ed89b31960d9
---
M ApiVisualEditor.php
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/06/295906/1

diff --git a/ApiVisualEditor.php b/ApiVisualEditor.php
index fa6d14f..66db2e7 100644
--- a/ApiVisualEditor.php
+++ b/ApiVisualEditor.php
@@ -360,6 +360,10 @@
 
                                } else {
                                        $content = '';
+                                       Hooks::run( 'EditFormPreloadText', [ 
&$content, &$title ] );
+                                       if ( $content !== '' ) {
+                                               $content = 
$this->parseWikitextFragment( $title, $content );
+                                       }
                                        $baseTimestamp = wfTimestampNow();
                                        $oldid = 0;
                                        $restoring = false;

-- 
To view, visit https://gerrit.wikimedia.org/r/295906
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I46ade4de02f15444c1ca5731a475ed89b31960d9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Tpt <thoma...@hotmail.fr>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to