orchidsoftware / orchidsoftware/platform

SimpleMDE occurs an error to preview.

Open
#2,093 1 comment 0 reactions 1 assignee View on GitHub

@tabuna is already working on this.

Since Jan 29, 2022.

Errors
Dominant language
PHP
Stars
4.8k
Forks
663
Avg merge
1d 9h
Merged PRs (30d)
7

Description

Describe the bug
SimpleMDE occurs an error to preview.

To Reproduce

  1. Install Orchid as the very basic way.
  2. Access /admin/example-editors page.
  3. Input something on SimpleMDE, and press Toggle Preview.
  4. Check the below error on the console of DevTools.
vendor.js?id=d8f40f248cc76311d0a5:2 Uncaught TypeError: o is not a function
    at Y.markdown (vendor.js?id=d8f40f248cc76311d0a5:2:1255267)
    at Object.Y.t.previewRender.t.previewRender (vendor.js?id=d8f40f248cc76311d0a5:2:1254253)
    at Object.j [as action] (vendor.js?id=d8f40f248cc76311d0a5:2:1247341)
    at HTMLAnchorElement.t.action.t.action.e.onclick (vendor.js?id=d8f40f248cc76311d0a5:2:1261640)

Expected behavior
It just need to show the preview of the markdown input.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 97.0.4692.99

Additional context
I think this error is related with some wrong dependencies, because I can see the below messages, when I do npm audit.

# npm audit report

quill  <=1.3.7
Severity: moderate
Cross-site Scripting in quill - https://github.com/advisories/GHSA-4943-9vgg-gr5r
No fix available
node_modules/quill

simplemde  *
Severity: moderate
Moderate severity vulnerability that affects simplemde - https://github.com/advisories/GHSA-wg85-p6j7-gp3w
No fix available
node_modules/simplemde

2 moderate severity vulnerabilities

Some issues need review, and may require choosing
a different dependency.

Can anyone help me to solve this issue?
Thank you for reading.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.