fix(visual-editing): don’t open admin for portableText; simplify starter PT markup (#40)
* fix(visual-editing): PT inline editing; align starter templates * chore(admin): format router.tsx --------- Co-authored-by: Matt Kane <mkane@cloudflare.com>
This commit is contained in:
@@ -61,6 +61,11 @@ describe("renderToolbar", () => {
|
||||
expect(html).toContain("/_emdash/api/manifest");
|
||||
});
|
||||
|
||||
it("skips toolbar interception for portableText (inline editor)", () => {
|
||||
const html = renderToolbar({ editMode: true, isPreview: false });
|
||||
expect(html).toContain("portableText");
|
||||
});
|
||||
|
||||
it("includes entry status badge styles", () => {
|
||||
const html = renderToolbar({ editMode: true, isPreview: false });
|
||||
expect(html).toContain("emdash-tb-badge--draft");
|
||||
|
||||
Reference in New Issue
Block a user