platform
platform copied to clipboard
SimpleMDE occurs an error to preview.
Describe the bug SimpleMDE occurs an error to preview.
To Reproduce
- Install Orchid as the very basic way.
- Access
/admin/example-editorspage. - Input something on SimpleMDE, and press
Toggle Preview. - 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.
I confirm this issue. The preview has the same behavior.