Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@edemaine/codemirror-spell-checker
Advanced tools
Spell checking so simple, you can set up in 60 seconds. It will highlight any misspelled words in light red. Works great in conjunction with other CodeMirror modes, like GitHub Flavored Markdown.
This is a fork of sparksuite's codemirror-spell-checker.
Added fixes:
hunspell-en_US-large
dictionary
via NPM package hunspell-dict-en-usVia npm.
npm install @edemaine/codemirror-spell-checker --save
Via bower.
bower install @edemaine/codemirror-spell-checker --save
Via jsDelivr. Please note, jsDelivr may take a few days to update to the latest release.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@edemaine/codemirror-spell-checker/latest/spell-checker.min.css">
<script src="https://cdn.jsdelivr.net/npm/@edemaine/codemirror-spell-checker/latest/spell-checker.min.js"></script>
Once CodeMirror is installed and loaded, first provide CodeMirror Spell Checker with the correct CodeMirror function. Then, just set the primary mode to "spell-checker"
and the backdrop mode to your desired mode. Be sure to load/require overlay.min.js
if you haven't already.
CodeMirrorSpellChecker({
codeMirrorInstance: CodeMirror,
});
CodeMirror.fromTextArea(document.getElementById("textarea"), {
mode: "spell-checker",
backdrop: "gfm" // Your desired mode
});
That's it!
You can customize the misspelled word appearance by updating the CSS. All misspelled words will have the .cm-spell-error
class.
.CodeMirror .cm-spell-error{
/* Your styling here */
}
// Most options demonstrate the non-default behavior
CodeMirrorSpellChecker({
codeMirrorInstance: CodeMirror,
customWords: ["CodeMirror", "GitHub"],
});
FAQs
Tweaked spell checker for CodeMirror
We found that @edemaine/codemirror-spell-checker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.