mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 15:44:59 +00:00
merge develop
This commit is contained in:
commit
dc8278fd1a
@ -15,7 +15,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"content": {
|
||||
"type": "wysiwyg"
|
||||
"type": "richtext"
|
||||
},
|
||||
"published": {
|
||||
"type": "boolean"
|
||||
|
||||
@ -365,7 +365,7 @@ const getType = ({ definition, attribute, name, tableExists = false }) => {
|
||||
switch (attribute.type) {
|
||||
case 'uuid':
|
||||
return client === 'pg' ? 'uuid' : 'varchar(36)';
|
||||
case 'wysiwyg':
|
||||
case 'richtext':
|
||||
case 'text':
|
||||
return client === 'pg' ? 'text' : 'longtext';
|
||||
case 'json':
|
||||
|
||||
@ -55,7 +55,7 @@ module.exports = (mongoose = Mongoose) => {
|
||||
case 'password':
|
||||
case 'string':
|
||||
case 'text':
|
||||
case 'wysiwyg':
|
||||
case 'richtext':
|
||||
return 'String';
|
||||
default:
|
||||
return undefined;
|
||||
|
||||
@ -24,7 +24,7 @@ const typeToSize = type => {
|
||||
return MAX_ROW_SIZE / 3;
|
||||
case 'json':
|
||||
case 'group':
|
||||
case 'wysiwyg':
|
||||
case 'richtext':
|
||||
return MAX_ROW_SIZE;
|
||||
|
||||
default:
|
||||
|
||||
@ -13,7 +13,7 @@ const postModel = {
|
||||
name: 'name',
|
||||
params: {
|
||||
multiple: false,
|
||||
type: 'wysiwyg',
|
||||
type: 'richtext',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@ -17,14 +17,14 @@ const documentModel = {
|
||||
name: 'name',
|
||||
params: {
|
||||
multiple: false,
|
||||
type: 'wysiwyg',
|
||||
type: 'richtext',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'content',
|
||||
params: {
|
||||
multiple: false,
|
||||
type: 'wysiwyg',
|
||||
type: 'richtext',
|
||||
},
|
||||
},
|
||||
],
|
||||
@ -40,7 +40,7 @@ const labelModel = {
|
||||
name: 'name',
|
||||
params: {
|
||||
multiple: false,
|
||||
type: 'wysiwyg',
|
||||
type: 'richtext',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@ -12,7 +12,7 @@ module.exports = {
|
||||
name: 'content',
|
||||
params: {
|
||||
multiple: false,
|
||||
type: 'wysiwyg',
|
||||
type: 'richtext',
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -121,7 +121,7 @@ module.exports = {
|
||||
name: 'description',
|
||||
params: {
|
||||
multiple: false,
|
||||
type: 'wysiwyg',
|
||||
type: 'richtext',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user