orchidsoftware / orchidsoftware/platform
SimpleMDE occurs an error to preview.
Open
@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
- 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.