mediawiki-extensions-Visual.../includes
Kosta Harlan b973ff3ee3 Introduce VisualEditorApiVisualEditorPreSaveHook
What:

Add a hook that runs before a save attempt is made in
ApiVisualEditorEdit. The hook receives the same data available in
ApiVisualEditorEdit, and implementations of the hook can modify the API
response.

Why:

VE plugins may send additional data when saving an edit, and extensions
might want to prevent the save from taking place based on that
additional data.

See for example the AddLink plugin in Ic8225933c9, where the save is
blocked if link suggestions don't exist in the database at save time.

Bug: T283109
Change-Id: I6b81ea318f52ec47661086d85b5cc242a3fcd0e4
2021-08-18 09:39:00 +02:00
..
ApiParsoidTrait.php build: Updating dependencies 2021-07-21 19:56:36 +00:00
ApiVisualEditor.php Replace Content::preSaveTransform call to ContentTransformer::preSaveTransform 2021-08-11 18:44:35 +03:00
ApiVisualEditorEdit.php Introduce VisualEditorApiVisualEditorPreSaveHook 2021-08-18 09:39:00 +02:00
ServiceWiring.php Introduce VisualEditorApiVisualEditorPostSaveHook 2021-04-30 20:50:01 +02:00
SpecialCollabPad.php Fix a series of minor style issues in PHP code 2021-06-03 15:55:38 +02:00
VisualEditorApiVisualEditorEditPostSaveHook.php Introduce VisualEditorApiVisualEditorPostSaveHook 2021-04-30 20:50:01 +02:00
VisualEditorApiVisualEditorEditPreSaveHook.php Introduce VisualEditorApiVisualEditorPreSaveHook 2021-08-18 09:39:00 +02:00
VisualEditorDataModule.php Fix a series of minor style issues in PHP code 2021-06-03 15:55:38 +02:00
VisualEditorDesktopArticleTargetInitModule.php doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
VisualEditorHookRunner.php Introduce VisualEditorApiVisualEditorPreSaveHook 2021-08-18 09:39:00 +02:00
VisualEditorHooks.php Fix a series of minor style issues in PHP code 2021-06-03 15:55:38 +02:00