Commit Graph

29 Commits

Author SHA1 Message Date
Felix Häusler
603ed04ab1 Add experimental spellchecker (#1424)
* Experimental spellchecker for testing purpose

* Fix 'apache' license validation

* Use local electron-spellchecker for development

* Add settings and bug fixes

* Fix Hunspell switchLanguage bug and improvements

* Fix attach to editor when enabling spell check again

* Add Hunspell license

* Copy default Huspell dictionary on first start

* Fix full language name

* Some code improvements

* Allow to add words to user dict and  bug fixes

* Allow to change Muya's spellcheck container attribute

* feat: Don't underline misspelled words

* Allow to set Hunspell on macOS

* Fix spellchecker changed value

* Refactor switchLanguage, init and enableSpellchecker

* Refactor and some fixes

* Code improvements

* electron-spellchecker cleanup and optimization

* Disable automatic language detection for Hunspell

* Fix init on macOS and update JSDoc

* Fix macOS issues and some improvements

* Load single settings value only

* Fix rebase

* Remove debug code

* Move electron-spellchecker to scoped npm repo

* Fix dictionary of ignored words on macOS

* Move replaceWordInline to core API

* Remove comment block

* Fix upstream lint error
2019-10-17 15:54:09 +08:00
Ran Luo
04fead0165
update asios and fix #1121 (#1133)
* update asios and fix #1121

* remove unused codes
2019-07-04 11:14:15 +08:00
Felix Häusler
edf01b2e96 Opt-in uploader services and add legal notices (#1113)
* Opt-in uploader services and add legal notices

* Fix style
2019-06-20 16:22:26 +08:00
Felix Häusler
e6e652713a
Find best window to open second-instance files and directories in (#1054)
* Files via command-line are opened in the best window

* Don't show FSW changed notification while saving

* Fixed source-code mode setting and remove focus/typewritter option

* Simplify ignore list

* Fix invalid dialog parameter

* Fix invalid dialog parameter (2)

* Use async message box dialog

* Update documentation

* few changes

* Check timer before calling clearTimeout

* Improve switch style

* Fix style
2019-06-09 15:41:58 +02:00
Ran Luo
c239e99f1b
Refactor inline image to support paste/drop image (#1028)
* feat: image setting

* opti: inline image

* add imageSelectAction

* remove axios from muya

* update image selector

* finish image selector ui

* add load success style

* delete image by click delete icon

* opti structure of image html

* handle arrow key

* enter to edit

* image preview by press space

* handle backspace when the previous element is image wrapper

* update codes for change another PC

* emable select all in input

* handle arrow and backspace key

* create a new paragraph after the last paragraph if its not empty

* handle backspace when the previous element is image wrapper

* handle enter event in image selector

* rewrite auto show image selector

* modify image folder

* copy file to folder

* select image

* handle paste image

* picgo

* guess image path from clipboard

* drag and drop image to Mark Text

* add github uploader

* remove unused codes

* remove unused codes

* rewrite image path auto complete

* support `path` imageInsertAction

* doc: add image uploader doc

* remove debug codes

* set init value in image uploader page

* fix typo

* remove unused codes

* drag web image to Mark Text

* add save notification

* opti uploading process

* fix did not close image selector bug

* check image content type when drag web link image

* fix: unable to preview relative path image.

* emit change event after paste/drop image

* add url map in image selector

* feat: screenshot and auto insert the screenshot image

* update error handler

* feat: use the native screencapture command line on macOs system

* opti: drop image

* fix: handle enter error when cursor is after a image

* fix: hasOwnProperty error

* remove debug codes

* fix: backspace when the previous ele is image

* fix: CI error and optimize some codes

* use hash of file path to generate the copied filename

* change default imageInsertAction to `path`

* fix: typo

* remove some unused codes and opti get image file name

* fix some bugs and opti codes

* update image edit icon

* romove screen capture on Linux and Windows

* fix: conflict

* fix error that can not insert image after the existed image or before existed image
2019-05-26 23:55:13 +08:00
Ran Luo
4bd22b6dc5
Mark Text Preference (#1003)
* dynamic change element-ui theme to our themeColor

* add some ui components

* add preference doc

* add json schema file

* update preference.json and schema.json

* reset to old commit

* rename preference file for rebase

* rebase develop

* add setting window

* user electron-store to store preferences

* add themes setting

* add select component

* add markdown pref

* fix: bool and select init value

* add font size setting

* editor pref

* add general preference

* search preference

* update menu after preference changed

* update muya codes

* prevent scale setting window

* fix: titlebar undefined

* update input style

* remove window from windowManager after close setting window

* remove old docs and preference.md

* if a setting window is already created, no need to create another one, just move it to top

* rename openFilesInNewWindow to openFileInNewWindow

* change aidou runtime

* change hideQuickInsertHint by setting page runtime

* change autopair runtime

* change codefont and codefontfamily dynamic

* change default value of autoSave to false

* update bulletListMarker

* fix style error

* add custom titlebar to settings window

* add window shadow for Linux and Windows

* fix Windows build

* fix some typo error

* update doc

* add default menu and setting menu

* fix update menu bug

* fix typo

* remove mac titlebarstyle

* do not need to send titlebarstyle to renderer

* fix typo

* crash Mark Text if no initial preference.json file

* update the path

* add showCustomTitleBar prop

* set empty settings menu on Linux/Windows + workaround
2019-05-09 09:26:28 +08:00
Felix Häusler
77ff23c2c8 refactor main source code (#1006)
* refactor main source code

* fix invalid file cache entries during startup
2019-05-04 22:14:45 +08:00
Ran Luo
e1cfec6e3e
opti: rewrite TOC and remove hard code theme (#778)
* opti: prevent the duplicated header text error

* scroll error in toc

* delay the change event when init muya, so that the change event listener can handle change event.

* opti: style

* almost finished need last check

* style in table

* clear up some unused codes

* clear up theme hard code

* add no search data picture and new Folder new File

* move search and replace to top of editor

* add: no data image when there is no TOC

* update structure

* little bug fix

* update styles

* update un_draw icons

* update style of editor

* add animation when make open folder collapse.

* remove theme props in editor component, deprecated lightColor and darkColor

* add Ulysses Light

* theme: graphite

* update Ulysses blockquote

* update emoji style

* update titleBar height

* change theme color

* Support macOs dark mode

* update style of tooltip in editor

* update styles

* fix: TOC auto expand all

* patch added
2019-03-24 05:09:00 +08:00
Felix Häusler
7aa723b9e7 Add XSS e2e test and fix error handler issue (#700) 2019-02-27 22:16:47 +08:00
Felix Häusler
47946739eb backport: Spellchecker minor bug fixes (#651)
* Experimental spellchecker backport

* Normalize path
2019-02-01 22:32:08 +08:00
Felix Häusler
a2a0363541 Add production source maps (#610)
* Add production source maps

* Increase mocha timeout
2018-12-20 17:09:16 +08:00
Felix Häusler
6a96a46fdb Add exception handler (#565) 2018-11-27 22:59:13 +08:00
Jocs
c3f8c9d129 opti: drag image to upload directlly 2018-09-22 18:11:11 +08:00
Jocs
a0ffb60054 opit: rewrite export pdf and print 2018-09-22 13:01:21 +08:00
冉四夕
4be72ade97
Notification (#337)
* rewrite notice module

* optimization: show some notification when export html or pdf

* optimization: style of open project button

* little bug fix

* style: uniform titlebar hight to remove some style error
2018-06-15 21:30:10 +08:00
Jocs
69efbb1545 fix: can not copy full link #312 2018-06-08 20:01:21 +08:00
冉四夕
c00083bcc5
feature: Basic use of inline and display math #36 (#89)
* feature: Basic use of inline and display math

* Opti: add locale en to element-ui

* Feature: copy and paste in math block
2018-03-29 23:51:56 +08:00
Jocs
2d5ccd7575 Opti: little optimization 2018-03-23 19:27:07 +08:00
Jocs
0b08429436 feature: add fontSize, lineHeight, color setting in the view menu.
You can also change them in use preferences.
2018-03-23 18:54:19 +08:00
Felix Häusler
78094dc2a8 Add drag & drop support for markdown files (#50) 2018-03-22 10:12:11 +08:00
Jocs
bf4c140981 fix: prevent open image or file directly when drag and drop over Mark Text #42 2018-03-20 21:47:13 +08:00
Jocs
68be26d190 feature: Insert Image
1. Abusolute path
2. relative path
3. Upload Image to Cloud
2018-03-18 03:02:35 +08:00
Jocs
a45bc824be update readme 2018-03-16 00:16:15 +08:00
Jocs
1762b1ab94 test travis 2018-03-13 10:48:47 +08:00
Jocs
d59702bb13 feat: search value, find next find prev 2018-03-01 20:50:11 +08:00
Jocs
f30cbfd837 opti:title bar and task list checkbox style optimization 2018-02-28 16:00:10 +08:00
Jocs
3dd4dec02e feat: export PDF 2018-02-24 18:05:56 +08:00
Jocs
0f5d5c4734 feat: insert table by menu 2018-02-04 17:50:45 +08:00
Jocs
94ca31d58a first commit 2017-11-13 00:05:57 +08:00