Skip to content

Commit 8e203a8

Browse files
committed
update rich text editor SQL queries to include default values for title and content, and add article flag in post query
1 parent b92e560 commit 8e203a8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/rich-text-editor/index.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ select 'form' as component,
88
'create_blog_post' as action,
99
'Create' as validate;
1010

11-
select 'title' as name, 'Blog post title' as label;
12-
select 'content' as name, 'textarea' as type, 'Your blog post here' as label;
11+
select 'title' as name, 'Blog post title' as label, 'My new post' as value;
12+
select 'content' as name, 'textarea' as type, 'Your blog post here' as label, 'Your blog post here' as value;
1313

1414
select 'list' as component,
1515
'Blog posts' as title;

examples/rich-text-editor/post.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ from blog_posts
44
where id = $id;
55

66
select 'text' as component,
7+
true as article,
78
content as contents_md
89
from blog_posts
910
where id = $id;

0 commit comments

Comments
 (0)