Skip to content

RFC: Adding a presave hook in editor focusoutHandler#279

Open
andrewshell wants to merge 1 commit intofedwiki:legacyfrom
andrewshell:editor-presave-hook
Open

RFC: Adding a presave hook in editor focusoutHandler#279
andrewshell wants to merge 1 commit intofedwiki:legacyfrom
andrewshell:editor-presave-hook

Conversation

@andrewshell
Copy link
Contributor

I'm curious if there have been any conversations about providing hooks in the code to allow plugins to extend core functionality. Here is an example of adding a "presave" hook to the editor.

I've created a plugin that would use this hook as a proof of concept.

https://github.com/andrewshell/wiki-plugin-metadata/blob/master/client/metadata.js#L26-L35

I'm sure there will need to be discussions before something like this gets merged. So I'm documenting the idea with working code.

@dobbs
Copy link
Member

dobbs commented Dec 29, 2021

A while back I created a feature to allow plugins to override the editor. It's not the same thing as the presave hook you've proposed, but I think reaching for similar kinds of extensions.
#247

@andrewshell andrewshell force-pushed the editor-presave-hook branch from 39968af to b00c9f1 Compare June 1, 2022 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants