pirtleshell / codemirror-typo Goto Github PK
View Code? Open in Web Editor NEW:snail: Spellcheck your CodeMirror editor in style with the dictionary of your choice
Home Page: https://pirtle.xyz/codemirror-typo/demo/
License: MIT License
:snail: Spellcheck your CodeMirror editor in style with the dictionary of your choice
Home Page: https://pirtle.xyz/codemirror-typo/demo/
License: MIT License
This line of css is missing a semicolon:
codemirror-typo/src/codemirror-typo.css
Line 31 in 8a81b37
When bundling this dependency with webpack css-loader
I am getting an error:
ERROR in ./node_modules/codemirror-typo/lib/codemirror-typo.min.css (./node_modules/css-loader/dist/cjs.js!./node_modules/codemirror-typo/lib/codemirror-typo.min.css)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
CssSyntaxError
(8:455) Missed semicolon
6 | * @author Robert Pirtle
7 | */
> 8 | #typoMenu{position:absolute;z-index:3;border-radius:4px;background-color:#f7f7f7}#typoMenu .typoItem:hover,#typoMenu .typoSugItem:hover{cursor:pointer;background-color:#f0f0f0}#typoMenu .typoItemContainer{display:inline-block;vertical-align:top;text-align:center}#typoMenu .typoItem{padding:5px 10px 5px 15px;transition:all .2s}#typoMenu .typoItem:hover+.typoSugMenu{display:inline-block}#typoMenu .typoSugMenu{display:none;margin-right:10px;padding:5px 10px -webkit-transition: all;-moz-transition:all .3s ease-out;-o-transition:all .3s ease-out;transition:all .3s ease-out}#typoMenu .typoSugMenu:hover{display:inline-block!important}
| ^
For the very first word in every new line i am getting a false positive. it does get resolved if i start the line with a space. Can you tell me the reason for this behaviour and how i can resolve it.
my current config of codeMirrorTypo object is:
`
let codeMirrorTypoOptions = {
dictPath: 'https://raw.githubusercontent.com/titoBouzout/Dictionaries/master/',
dictFolder: '',
filename: 'English (American)',
typoClass: 'typo',
typoCSS: 'border-bottom: 1px dotted red;',
gutterClass: 'test2',
gutterMarkClass: 'test2',
}
codeMirrorTypo(this.codeMirror, 'English (American)', codeMirrorTypoOptions);
`
1 2 3 4 5 6 7 8 9 are fine
10+ are marked as a typo
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.