Commit Graph

1548 Commits

Author SHA1 Message Date
Felix Häusler
d0d76f0b5d Fix print page margin (#1488) 2019-10-20 16:18:40 +08:00
Ran Luo
41a2343e0f
Lazy load some big assets and optimize the bundle size (#1481)
* Use snap.svg to replace raphael

* lazy load diagram

* rm debug codes

* Use throw exception instead of console.error
2019-10-20 11:56:11 +08:00
Ran Luo
5d247ec5ee Update spell icon in preference window (#1497) 2019-10-18 18:19:42 +02:00
Ran Luo
0ae59e9ce4 Update deps (#1496) 2019-10-18 18:19:03 +02:00
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
Felix Häusler
1b9ee786be Fix lint error (#1492) 2019-10-16 09:17:31 +08:00
Felix Häusler
ad41f1c552
Fix recently directories (#1486) 2019-10-15 19:44:38 +02:00
Felix Häusler
929ff58027
Fix EOL menu state (#1487) 2019-10-15 19:44:29 +02:00
Ran Luo
84b50097e5
fix: #1460 and #982 (#1482)
* fix: #1460

* fix: #982 support click preview container and start edit
2019-10-15 08:42:03 +08:00
Ran Luo
b819042d73 Update joplin-turndown-plugin-gfm to fix #1472 (#1478) 2019-10-13 13:23:21 +02:00
Ran Luo
289b17c015 Optimization of table block (#1456)
* Prepare for drag and drop row and column

* remove regexp th|td

* render drag button

* Feat: support drag and drop row and column of table

* Feat: table bar tools

* remove unnecessary codes

* Feat: support select multiple cells

* Do not show table drag bar when selected cells

* Feat: support delete selected cells content or remove row/column/table

* Feat: select one cell or table when press ctrl + a

* Support select all content

* Remove table tools in context menu

* Feat: support copy paste selected cells as sub table

* Fix: PR issue 1 press tab will not show the table drag bars

* Select one cell and press backspace will cause bug

* Fix: The table drag bar location error when there are tow tables in the editor

* Fix unable copy and paste 1* n or n * 1 table

* Drag any row to the top to editor will cause error.

* Update table resize icon

* Fix: table resize is not work in table tool bar

* Fix: No need to show left drag bar if only one row, and no need to show bottom drag bar if only one column.

* Fix: Create an empty table in source code mode, turn to preview mode, there are more than two drag bars in one table.

* Fix: resize table

* Opti: table is not 100% width now

* Fix drag in one row or column

* Change table delete icon

* Fix: backspace is not work

* Little style opti

* Fix: cmd + enter bug

* Update the table drag bar context menu text

* Handle delete key when select table cells

* remove all unnecessary debug codes

* Feat: support cut selected cells and copy/cut by context menu

* Fix typo

* Rename some methods name

* Fix an issue when drag and drop table drag bar

* fix do not handle cell selection when the context menu shown

* Do not handle select cells when mouse up outside table
2019-10-13 13:23:00 +02:00
Ran Luo
bcb9d97d61 Can not focus the first empty line in code block (#1477)
* Fix: do not show inline format float tool bar when select text in language input

* Fix: #1460
2019-10-12 19:55:21 +02:00
Ken P
342e9c457a Feat: add menu for tabs (#1434)
* Feat: add menu for tabs

* Rename "Show in file manager" tab menu item to "Show in folder"

* Pass tabID instad of tab object to the menuitem
2019-10-12 19:43:42 +02:00
Felix Häusler
1748eed269 Fix Windows screen area (#1474) 2019-10-12 07:47:40 +08:00
Felix Häusler
dbac418f4c Fix build issue on Windows with optional dependency (#1475) 2019-10-12 07:45:56 +08:00
Maksym Dogadailo
edb3f7e758 fix: wrap long lines and a little bit of padding for pre element (#1470)
* fix: word-wrap for pre tag, add padding for pre tag

* fix: use 1em for pre preview
2019-10-10 22:19:20 +02:00
Maksym Dogadailo
50e2e6ce92 fix: settings switch used 100% of width (#1471) 2019-10-10 22:14:36 +02:00
Ran Luo
c57b16b4f4 Update: electron@6.0.12 (#1467) 2019-10-10 21:00:36 +02:00
Felix Häusler
9567c143d3 Allow 1x1, 1x2 and 2x1 tables (#1462) 2019-10-10 02:00:17 +08:00
Ran Luo
ff1da05e48 Fix not fail e2e XSS test (#1458) 2019-10-08 20:10:58 +02:00
Ran Luo
29a6dc6e4f Fix issue #1455 (#1457) 2019-10-08 20:02:18 +02:00
Ran Luo
5b8da2cdf4
Optimization of code block (#1445)
* duplicate css rule

* remove all codeLine

* Fix: #1446

* Fix #942 #1310

* Fix copy paste will add one more empty line in code block

* remove debug codes

* Fix update thematic break error

* fix: #1447

* Update octokit/rest and url-loader

* Fix: CI test error

* Fix comment issue1

* Fix: escape charachters in code block
2019-10-08 14:12:51 +08:00
Felix Häusler
4a24ff0954 Add file encoding support (#1438)
* Add file encoding support

* Update documentation
2019-10-06 08:45:55 +08:00
Ran Luo
4d728a500e
Support RegExp search and replace in file edit. (#1422)
* Update style of search component

* Opti folder structure

* Finish UI

* Finish all search and replace function

* add notification when match too more or invalid regular expression

* Modify empty string

* Modify stile

* Do init search when press cmd + f
2019-10-06 08:42:06 +08:00
Felix Häusler
2f65f6cec0 Optimize bundle dependency size (#1449) 2019-10-05 22:55:06 +08:00
Ran Luo
fab1c62fde Fix issue 1378 (#1405)
* Feat: add trimUnnecessaryEmptyLine setting option

* remove debug code

* Fix: tpro and remove debug codes

* rename trimUnnecessaryEmptyLine to trimUnnecessaryCodeBlockEmptyLines
2019-10-05 14:54:34 +02:00
Ran Luo
b791fd2371 Update dependences (#1444) 2019-10-05 14:51:08 +02:00
Felix Häusler
2c15d516c3 Fix application menu exceptions (#1437) 2019-10-04 21:59:47 +08:00
Pattarawat Chormai
cc63cf87da Fix the download section anchor (#1440) 2019-10-04 16:39:47 +08:00
Maksym Dogadailo
9efc1f1e20 fix: ag front submenu is not corresponded to other menus (#1443) 2019-10-04 09:45:51 +08:00
Maksym Dogadailo
bafd7cc0b1 fix: pre tags rendering #1409 (#1442) 2019-10-04 09:42:43 +08:00
Maksym Dogadailo
9ca6410745 fix: style error in tooltip arrow #1417 (#1441) 2019-10-04 09:35:41 +08:00
Felix Häusler
c85050b340 Update documents (#1439) 2019-10-03 23:07:53 +08:00
Ran Luo
01518f6dbf
Opti: support 1 * 1 table (#1371)
* Opti: support 1 * 1 table

* Support open 1*1 table but only support create 2*2 table
2019-10-03 23:04:12 +08:00
Ran Luo
6d2d0fabe0 fix: #1418 Set file watch option usePolling to true on macOS (#1430)
* fix: #1418

* Remove debug code
2019-10-03 15:26:55 +02:00
Ran Luo
344df06d58
Unable to open markdown file by command line (#1429)
* test for open markdown file by command

* change version to 0.15.0
2019-10-03 08:08:16 +08:00
Ran Luo
cb25b3d47f Feat: link tool support html tag:a and reference link (#1415)
* Feat: link tool support html tag:a and reference link

* remove debug code
2019-10-02 23:34:25 +02:00
Felix Häusler
ddf9c50a42
Complete TOML and JSON front matter (#1402)
* Complete TOML and JSON front matter

* Add frontmatter settings
2019-10-02 23:27:29 +02:00
Ran Luo
60a12ae221 Update readme to version 0.15.1 and update dependences (#1416)
* Update readme to version 0.15.1 and update dependences

* update readme in other language
2019-10-02 11:26:39 +02:00
Felix Häusler
1ec2029e39 Set CodeMirror viewport to infinity (#1427) 2019-10-02 09:17:41 +08:00
Felix Häusler
9325486547 Update Travi CI distros (#1414)
* Update Travi CI distros

* Upgrade node to 12 and update CI scripts
2019-10-02 09:15:25 +08:00
Ran Luo
c0853f644b
Feat: support auto link and auto link extension (#1421) 2019-10-02 09:12:09 +08:00
Ran Luo
0dc4b4154f Fix: #1218 backspace error in table cell (#1425) 2019-10-01 19:57:25 +02:00
Ran Luo
3fa8a9aef5 Fix: #1061 no need to auto pair in inline code (#1423) 2019-10-01 19:55:09 +02:00
Enderson Menezes
c2c4dee785 Update pt.md (#1420)
Added full link for images, because the translation file in an internal directory.
2019-10-01 21:05:20 +08:00
Enderson Menezes
14f1c598d6 Update pt.md (#1419)
I have been using the editor for almost 1,5 years, and have committed myself annually to come here and translate the docs for Portuguese, to try to popularize it in our language and in my country (Brazil).
2019-10-01 20:20:05 +08:00
Felix Häusler
9def20d8f9 backport: update changelog (#1412) 2019-10-01 13:44:43 +08:00
Felix Häusler
63d41155ab Update documents (#1411) 2019-10-01 11:58:44 +08:00
Ran Luo
6920c3e0e3 fix: image uploading error (#1385)
* fix: image uploading error

* replace image url and adjust cursor
2019-09-30 20:02:46 +02:00
Ran Luo
de9c62a0f3 fix #1401 (#1404) 2019-09-30 20:02:09 +02:00