decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.7k stars 3.03k forks source link

Error: Cannot find a descendant at path [7,0,0,0,2] in node: {"children":[{"type":"paragraph","ch... #6993

Closed nanqic closed 7 months ago

nanqic commented 7 months ago

Describe the bug when edit,I press Shift+Enter , then Error There's been an error - please open an issue on GitHub. To Reproduce

Expected behavior

Screenshots

Applicable Versions:

CMS configuration

backend:
  name: git-gateway
  branch: master
media_folder: static/f/up
public_folder: /f/up
collections:
  - name: posts
    label: Posts
    label_singular: Post
    description: |
      发布学习小组共修通知.
    folder: content/posts
    extension: md
    format: frontmatter
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    summary: "{{title}} -- {{year}}/{{month}}/{{day}}"
    create: true
    sortable_fields:
      - date
      - commit_date
      - title
      - commit_author
    view_groups:
      - label: Year
        field: date
        pattern: \d{4}
        id: date__\d{4}
      - label: Tags
        field: tags
        id: tags__undefined
    fields:
      - label: Title
        name: title
        widget: string
        tagname: h1
      - label: Publish Date
        name: date
        widget: datetime
        dateFormat: YYYY-MM-DD
        timeFormat: HH:mm:ss
        format: YYYY-MM-DD HH:mm:ssZ
        date_format: YYYY-MM-DD
        time_format: HH:mm:ss
      - label: Categories
        name: categories
        widget: list
        default:
          - 慧灯禅修班
      - label: Tags
        name: tags
        widget: list
        default:
          - 201x届
      - label: Attachments (Once uploaded/selected, you can copy the link from preview
          panel to body windown below)
        name: attachments
        widget: file
        required: false
        media_library:
          config:
            multiple: true
      - label: Body
        name: body
        widget: markdown
        hint: Main content goes here.
    publish: true
    type: folder_based_collection
    view_filters: []
publish_mode: simple
slug:
  encoding: unicode
  clean_accents: false
  sanitize_replacement: "-"
isFetching: false
error: null

Additional context

martinjagodic commented 7 months ago

Hi @nanqic, please fill out all the fields in the issue template. The information you provided is not enough to debug the problem.

I'm closing the issue for now. Once you add the missing information, I can open it again.