Skip to content

Commit 84db24f

Browse files
fix(endpoint-posts): add media endpoint to markdown editors
1 parent f4f72f2 commit 84db24f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/endpoint-posts/includes/post-types/content-field.njk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
field: {
88
attributes: {
99
editor: true,
10+
"editor-endpoint": application.mediaEndpoint,
1011
"editor-id": (properties.uid or ("new-" + postType)) + "-content",
1112
"editor-locale": application.locale,
1213
"editor-image-upload": "false" if postType == "note" or postType == "photo",

packages/endpoint-posts/includes/post-types/summary-field.njk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
field: {
88
attributes: {
99
editor: true,
10+
"editor-endpoint": application.mediaEndpoint,
1011
"editor-id": (properties.uid or ("new-" + postType)) + "-summary",
1112
"editor-locale": application.locale,
1213
"editor-status": "false",

0 commit comments

Comments
 (0)