platform icon indicating copy to clipboard operation
platform copied to clipboard

SimpleMDE occurs an error to preview.

Open KLA6 opened this issue 3 years ago • 1 comments

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.

KLA6 avatar Jan 29 '22 05:01 KLA6

I confirm this issue. The preview has the same behavior.

tabuna avatar Jan 31 '22 14:01 tabuna