Skip to content

Commit d060335

Browse files
committed
feat: support titles in richText
1 parent 91aa2a0 commit d060335

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/smooth-backend-wordpress/src/acf/config/index.test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ describe('#generateConfig', () => {
3333
['[String] @field', { type: 'textarea' }],
3434
['String @field(type: shortText)', { type: 'text' }],
3535
['String @field(type: longText)', { type: 'textarea' }],
36-
[
37-
'String @field(type: richText)',
38-
{ type: 'wysiwyg', media_upload: 0, toolbar: 'basic' },
39-
],
36+
['String @field(type: richText)', { type: 'wysiwyg', media_upload: 0 }],
4037
['Boolean @field', { type: 'true_false' }],
4138
['Date @field', { type: 'date_picker' }],
4239
['DateTime @field', { type: 'date_time_picker' }],

packages/smooth-backend-wordpress/src/acf/config/oneField.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const handlers = {
5151
},
5252
richText(infos) {
5353
preventList(infos)
54-
return { type: 'wysiwyg', toolbar: 'basic', media_upload: 0 }
54+
return { type: 'wysiwyg', media_upload: 0 }
5555
},
5656
image({ list }) {
5757
if (list) return { type: 'gallery' }

0 commit comments

Comments
 (0)