public function onBlockEditing(BlockEditingEvent $event)
    {
        $encodedBlock = $event->getFileContent();
        $htmlBlock = $this->pageProductionRenderer->renderBlock($encodedBlock);

        $this->permalinkManager
            ->add($event->getFilePath(), $htmlBlock)
            ->save();
    }