Skip to content

Commit

Permalink
feat(endpoint-posts): use markdown editor for content field
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Apr 5, 2024
1 parent 2c57ad7 commit d57face
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/endpoint-posts/includes/post-types/content-field.njk
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{{ characterCount({
{{ textarea({
name: "content",
value: properties.content.text or fieldData("content").value,
label: __("posts.form.content.label"),
optional: not field.required,
errorMessage: fieldData("content").errorMessage
errorMessage: fieldData("content").errorMessage,
field: {
attributes: {
editor: true,
"editor-id": properties.uid + "-content"
}
}
}) }}

0 comments on commit d57face

Please sign in to comment.