Comments (5)
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.
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.
It should be possible to depend on the native system spellchecking no?
Does Electron provide an API for this?
from paper-for-mac.
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.
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)
- Google signing is not working HOT 8
- App does not retain state when window is closed HOT 1
- Multiple windows
- Focusing the window does not focus the input
- Large documents become unresponsive HOT 3
- Allow adding folders to side bar - Feature request HOT 1
- Keyboard shortcuts not closing
- Wrong transparent in MacOS High Sierra(?) HOT 3
- 100 MB bigger than nativefier app?
- Not an issue or anything
- Print Feature
- Opening a Dropbox paper also opens a new tab in the browser HOT 6
- Can you support Linux? For example, Ubuntu
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paper-for-mac.