Commit Graph

36 Commits

Author SHA1 Message Date
Max Wu b22b4d3fb4 fix: use const for ignoreOverlay since it's never reassigned
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2020-02-27 18:20:41 +08:00
Max Wu 3cc563ec59 feat: define vega code block using json overlay mode in editor
to get vega-lite syntax highlighting work

Signed-off-by: Max Wu <jackymaxj@gmail.com>
2020-02-27 18:20:41 +08:00
Yukai Huang dc873e0d28
Display active spell check lang
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-02-05 18:49:41 +08:00
Yukai Huang 34a69c401c
Fix check overlay not refreshed
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-02-05 18:34:03 +08:00
Yukai Huang 19dad9dfc8
Lazy load dicts, support cdn, config webpack
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-02-05 18:34:02 +08:00
Yukai Huang 22443879e7
Support multilanguage spellchecker
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-02-05 18:34:02 +08:00
Yukai Huang 526b5d0aa7
Expose setDictLang method
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-02-05 18:34:01 +08:00
Yukai Huang aef2c780c8
Bundle our own spellchecker
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-02-05 18:34:00 +08:00
Yukai Huang 89ff0b6b1c
Fix coding style
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-02-05 14:51:16 +08:00
Yukai Huang 20d7df5139 Handle theme dropdown menu resizing
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-02-04 14:36:31 +08:00
Yukai Huang 0983cae811 Add more editor themes
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-01-31 15:53:29 +08:00
Yukai Huang 0060488244 Change theme toggle to theme select dropdown menu
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-01-31 15:42:22 +08:00
Daniel Lublin db0ee65fc8 fix: correct to singular location
Signed-off-by: Daniel Lublin <daniel@lublin.se>
2019-12-01 16:49:28 +01:00
Max Wu 232c8bd870 feat: add toolbar buttons for table tools
and hide scrollbar of the toolbar to avoid overlapping the buttons

Signed-off-by: Max Wu <jackymaxj@gmail.com>
2019-10-14 14:14:32 +08:00
Max Wu 02feb973e1 feat: add table tools which extends from @susisu/mte-kernel
port of the code from: https://github.com/susisu/mte-demo/blob/master/src/main.js

Signed-off-by: Max Wu <jackymaxj@gmail.com>
2019-10-14 14:14:32 +08:00
Yukai Huang ad5be66206
Add status bar icon to toggle linter
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-08-18 21:57:32 +08:00
Yukai Huang 2852be0980
Tweak gutter styles
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-08-18 21:57:32 +08:00
Yukai Huang 6ddf872dec
Initial support for markdownlint
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-08-18 21:57:32 +08:00
BoHong Li 94703dc8b8
refactor: fix lint on public/js/lib/editor/index.js
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2019-08-04 23:56:33 +08:00
BoHong Li a6036cb70b
refactor: back to use js-standard
Signed-off-by: BoHong Li <a60814billy@gmail.com>
2019-05-27 17:53:08 +08:00
Claudius Coenen 858a59529e switching to eslint for code checking
most rules degraded to WARN, so we don't go insane. This will
change over time. The aim is to conform to a common style

Signed-off-by: Claudius Coenen <opensource@amenthes.de>
2018-11-14 23:15:36 +01:00
Sheogorath f65d96c57b
Fix liniting and optimize some functions
First fixed some linting issues. Also optimized some functions to be
undoable with one ctrl+z.

This should also speedup some operations

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-23 21:18:15 +02:00
Edgar Zanella Alvarenga a8b664fdb5 Add a toolbar to Codemirror editor
Signed-off-by: Edgar Zanella Alvarenga <e@vaz.io>
2018-06-19 16:03:56 +02:00
Sheogorath 9c77e9d7f0
Allow the usage of the esc-key by codemirror
This change allows all input modes of codemirror to use the information
from an input esc-key and make this way vim and sublime more
functional. To prevent this change from breaking the return from the
fullscreen mode, it catches the esc-key in this case. Hopefully this is
an acceptable solution.

As before the vim-mode is handled different in fulltext-mode as it is
esc-key heavy.

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-02-24 21:14:47 +01:00
Oliver Herrmann 7d0ef1276c
Corrected some grammatical issues
Obviously caught up in a bad translation and didn't particularly make sense for native english speakers.
2017-10-30 11:25:44 +11:00
Wu Cheng-Han 2bdccd3996 Fix home and end keys behavior for windows 2017-09-27 21:27:33 +08:00
Yukai Huang c6c11c54ef Expose internal editor config variable 2017-05-07 20:37:27 +08:00
Yukai Huang db06a51299 Load statusbar template by string-loader 2017-05-07 20:37:26 +08:00
Yukai Huang f5b95c5d36 Move updateStatusBar method into editor class 2017-03-28 17:16:32 +08:00
Yukai Huang df743ab902 Fix listener “this” context 2017-03-28 17:11:20 +08:00
Yukai Huang 46ed658d8b Promisify getStatusBarTemplate method 2017-03-28 15:24:52 +08:00
Yukai Huang b86ecb1342 Extract selection update from updateStatusbar 2017-03-28 11:57:44 +08:00
Yukai Huang 81666a726c Impl multiple codemirror event listener 2017-03-28 11:18:36 +08:00
Yukai Huang cc30d370f7 Fix variable exporting error 2017-03-13 22:00:20 +08:00
Yukai Huang 9b513f619f Use JavaScript standard style 2017-03-09 15:39:42 +08:00
Yukai Huang 6556c284e5 Extract editor related code
- in public/js/lib/editor/index.js
2017-03-08 21:43:32 +08:00