AVAnnotate / admin-client

Application for building AVAnnotate websites
0 stars 0 forks source link

Remove Slate plugin that prevented event embed deletion #18

Closed camdendotlol closed 2 months ago

camdendotlol commented 2 months ago

Summary

In my original page form PR, I included a withPreventBlockDeletion plugin to the Slate editor to prevent users from being able to accidentally delete event embeds when hitting backspace. Unfortunately, Slate's editor events don't differentiate between backspace deletion and manual deletion (i.e. clicking the Delete button in the meatball menu). So this plugin had the effect of making it impossible to delete event embeds.

This PR removes the plugin. It also updates the page-fetching helper code to accommodate the new .gitkeep file that we've started using in the project template.