Code Monkey home page Code Monkey logo

codemirror-typo's People

Contributors

pirtleshell avatar zach10za avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

zach10za mindedge

codemirror-typo's Issues

Missing semicolon breaks webpack css-loader

This line of css is missing a semicolon:

padding: 5px 10px

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}
    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^

false positive for the first word of every newline

image

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);

`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.