From the Electron Docs
https://www.electronjs.org/docs/latest/tutorial/native-file-drag-drop
windows.mainWindow.setProgressBar(c)app.addRecentDocument(path)
app.clearRecentDocuments()app.setAsDefaultProtocolClient(protocol[, path, args])webPreferences: {
spellcheck: true
}Spell check context menu
myWindow.webContents.on('context-menu', (event, params) => {
const menu = new Menu()
// Add each spelling suggestion
for (const suggestion of params.dictionarySuggestions) {
menu.append(new MenuItem({
label: suggestion,
click: () => myWindow.webContents.replaceMisspelling(suggestion)
}))
}
// Allow users to add the misspelled word to the dictionary
if (params.misspelledWord) {
menu.append(
new MenuItem({
label: 'Add to dictionary',
click: () => myWindow.webContents.session.addWordToSpellCheckerDictionary(params.misspelledWord)
})
)
}
menu.popup()
})