decaporg / decap-cms

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

TypeError: Cannot read property 'textContent' of undefined #5575

Closed HanoonIH closed 1 year ago

HanoonIH commented 3 years ago

This error is showing when try to make a text bold by highlighting and click the B button in android chrome browser.

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

CMS configuration

backend:
  name: git-gateway
  branch: main
publish_mode: editorial_workflow
media_folder: public/assets
public_folder: /assets
collections:
  - name: post
    label: Post
    folder: src/posts
    create: true
    slug: "{{slug}}"
    fields:
      - label: Title
        name: title
        widget: string
      - label: Number
        name: number
        widget: number
      - label: Author
        name: author
        widget: string
        required: false
      - label: Tags
        name: tags
        widget: list
      - label: Featured Image
        name: image
        widget: image
      - label: Body
        name: body
        widget: markdown
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - author
    view_filters: []
    view_groups: []
slug:
  encoding: unicode
  clean_accents: false
  sanitize_replacement: "-"
isFetching: false
error: null

Additional context

erezrokah commented 3 years ago

Hi @HanoonIH, thank you for the report. Does the issue happens only on Android? Can you try with a Desktop browser?

Also can you share a public repo with your code? Sometimes such errors are related to custom preview template/custom widgets

HanoonIH commented 3 years ago

Working fine in desktop. GitHub repo: GitHub.com/hanoonih/thazkiya

On Mon, Jul 5, 2021, 3:11 PM Erez Rokah @.***> wrote:

Hi @HanoonIH https://github.com/HanoonIH, thank you for the report. Does the issue happens only on Android? Can you try with a Desktop browser?

Also can you share a public repo with your code? Sometimes such errors are related to custom preview template/custom widgets

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/netlify/netlify-cms/issues/5575#issuecomment-873968188, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP2AULGRWG77WJNS67RE4DDTWF43LANCNFSM47XSPRJA .