1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 10:46:32 +00:00

spellcheck -> context menu with spelling suggestions

This commit is contained in:
ehhc
2018-07-02 17:27:47 +02:00
parent 342575a576
commit 83f8151ca4
6 changed files with 243 additions and 14 deletions

View File

@@ -81,6 +81,9 @@ function createAttachmentDestinationFolder (destinationStoragePath, noteKey) {
* @param noteKey Key of the current note
*/
function migrateAttachments (renderedHTML, storagePath, noteKey) {
if (renderedHTML == null || storagePath == null || noteKey == null) {
return
}
if (sander.existsSync(path.join(storagePath, 'images'))) {
const attachments = getAttachmentsInContent(renderedHTML) || []
if (attachments !== []) {