Giter VIP home page Giter VIP logo

Comments (5)

michael-lefebvre avatar michael-lefebvre commented on May 31, 2024 1

Oops, sounds like I forget to do my homework 😓

I don't have time for a step-by-step post, so to do it simple you need to add the electron-spell-check-provider package to your project.

This is a basic but decent spellcheck provider. I would like to test electron-spellchecker who seems more complete, but I don't have time now.

Anyway, the BIG issue that is not documented is that you need to rebuild electron's dependencies.

So you must use electron-rebuild and add the next script to your task runner and execute it after every package install/update.

var pathToElectron  = require('electron-prebuilt')

var electronVersion = childProcess.execSync(`${pathToElectron} --version`, {
  encoding: 'utf8',
})

return electronRebuild.default( path.join( __dirname, 'app'), electronVersion)
  .then(() => console.info('Rebuild Successful'))
  .catch((e) =>
  {
    console.error("Building modules didn't work!")
    console.error(e)
  })

Then "c'est dans la poche", simply copy/adapt this snippet and it should works. 🙂

Tell me if it's ok or if you have any questions

from paper-for-mac.

caloon avatar caloon commented on May 31, 2024

Not sure if that's possible (e.g. via their API), but Grammarly language check would be really cool as well. No clue if that's technically possible, though.

from paper-for-mac.

jryio avatar jryio commented on May 31, 2024

It should be possible to depend on the native system spellchecking no?

Does Electron provide an API for this?

from paper-for-mac.

williambout avatar williambout commented on May 31, 2024

Electron doesn't provide an API for the native spellchecking yet.
@michael-lefebvre is supposed to post a blog post soon about this.

from paper-for-mac.

williambout avatar williambout commented on May 31, 2024

Thanks @michael-lefebvre!
I decided to go with electron-spellchecker since it was really quick to implement and didn't require to rebuild electron.

from paper-for-mac.

Related Issues (14)

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.