Enable in-place editing for page sections and media

This commit is contained in:
2026-11-21 21:06:34 +09:00
parent a910f03929
commit faba214971
11 changed files with 505 additions and 80 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ final class StudioController extends AdminController
$repo = new Repository();
$page = $repo->page($slug);
return $page ? (new SiteController())->renderPage($repo, $page, true) : $this->error($request, '找不到此页面。', 404);
return $page ? (new SiteController())->renderPage($repo, $page, true, $request->get('canvas') === '1') : $this->error($request, '找不到此页面。', 404);
}
public function blocks(Request $request, string $slug): Response