mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-24 04:59:13 +00:00
feat(Ghost Node): Add support for lexical format (#7488)
This commit is contained in:
@@ -114,6 +114,10 @@ export const postFields: INodeProperties[] = [
|
||||
name: 'Mobile Doc',
|
||||
value: 'mobileDoc',
|
||||
},
|
||||
{
|
||||
name: 'Lexical',
|
||||
value: 'lexical',
|
||||
},
|
||||
],
|
||||
default: 'html',
|
||||
description: 'The format of the post',
|
||||
@@ -150,6 +154,22 @@ export const postFields: INodeProperties[] = [
|
||||
description:
|
||||
'Mobiledoc is the raw JSON format that Ghost uses to store post contents. <a href="https://ghost.org/docs/concepts/posts/#document-storage">Info</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Content (JSON)',
|
||||
name: 'content',
|
||||
type: 'json',
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['adminApi'],
|
||||
resource: ['post'],
|
||||
operation: ['create'],
|
||||
contentFormat: ['lexical'],
|
||||
},
|
||||
},
|
||||
|
||||
default: '',
|
||||
description: 'Lexical is the JSON format returned by the Ghost Default editor',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
name: 'additionalFields',
|
||||
@@ -395,6 +415,10 @@ export const postFields: INodeProperties[] = [
|
||||
name: 'Mobile Doc',
|
||||
value: 'mobiledoc',
|
||||
},
|
||||
{
|
||||
name: 'Lexical',
|
||||
value: 'lexical',
|
||||
},
|
||||
],
|
||||
default: ['mobiledoc'],
|
||||
},
|
||||
@@ -532,6 +556,10 @@ export const postFields: INodeProperties[] = [
|
||||
name: 'Plaintext',
|
||||
value: 'plaintext',
|
||||
},
|
||||
{
|
||||
name: 'Lexical',
|
||||
value: 'lexical',
|
||||
},
|
||||
],
|
||||
default: ['html'],
|
||||
description:
|
||||
@@ -593,6 +621,10 @@ export const postFields: INodeProperties[] = [
|
||||
name: 'Mobile Doc',
|
||||
value: 'mobiledoc',
|
||||
},
|
||||
{
|
||||
name: 'Lexical',
|
||||
value: 'lexical',
|
||||
},
|
||||
],
|
||||
default: ['mobiledoc'],
|
||||
},
|
||||
@@ -636,6 +668,10 @@ export const postFields: INodeProperties[] = [
|
||||
name: 'Mobile Doc',
|
||||
value: 'mobileDoc',
|
||||
},
|
||||
{
|
||||
name: 'Lexical',
|
||||
value: 'lexical',
|
||||
},
|
||||
],
|
||||
default: 'html',
|
||||
description: 'The format of the post',
|
||||
@@ -707,6 +743,18 @@ export const postFields: INodeProperties[] = [
|
||||
description:
|
||||
'Mobiledoc is the raw JSON format that Ghost uses to store post contents. <a href="https://ghost.org/docs/concepts/posts/#document-storage">Info.</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Content (JSON)',
|
||||
name: 'contentJson',
|
||||
type: 'json',
|
||||
displayOptions: {
|
||||
show: {
|
||||
'/contentFormat': ['lexical'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'Lexical is the JSON format returned by the Ghost Default editor',
|
||||
},
|
||||
{
|
||||
displayName: 'Featured',
|
||||
name: 'featured',
|
||||
|
||||
Reference in New Issue
Block a user