Commit Graph

15 Commits

Author SHA1 Message Date
Felix Häusler
2686cfafe4 Update deps and automatically format style (#1168) 2019-07-24 10:57:21 +08: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
230c90c920
container block preview and inline syntax error (#992)
* opti: container block preview

* remove unused codes

* rewrite createBlock method

* remove ag-line classname

* just push codes

* hand enter + shift in paragraph

* update import markdown and export markdown

* update part updateCtrl

* update indent code block

* auto indent when press shift + enter

* update thematic break

* update inline syntax update reg

* update list and task list

* update atx heading and setext heading

* update paragraph

* update block quote

* adjust cursor in heading

* update codes

* paragraph turn into feature check

* check copy paste

* update turn into

* fix: delete last # error

* fix: turn setext heading to atx heading error

* fix: delete thematic break error

* paste and copy

* workarond turndown to support soft line break

* fix: unable create table

* modify export markdown

* modify test markdown

* fix: cursor error when update blockquote

* readd cursor check when dispatch changes

* fix: inline math create a lot extra char

* add code cache clear after each render

* fallback to prismjs2
2019-05-04 23:41:46 +08:00
Ran Luo
d4e051ed5e arrow down will not show the # marker of header (#978)
* arrow down will not show the # marker of header

* add comments and update changelog
2019-04-27 18:10:35 +02:00
Ran Luo
a900b7f2ef
optimization of cursor, and fix some cursor related issues (#963)
* optimization of cursor, and fix some cursor related issues

* remove duplicate codes
2019-04-23 23:45:43 +08:00
Ran Luo
739d31aa66 fix #625 (#799)
* style opti

* fix #625

* update changelog

* fix error when selection in not in edit area

* also fix double click front icon and error happen

* fix error when click front icons and toolbars of table

* rebase master

* update some codes

* null check in all selection.getCursorRange method

* add maskColor variable

* update roadmap, remove note features
2019-03-31 13:06:27 +02:00
Ran Luo
4880af4dad
Fix #684 (#723)
* fix: auto focus language input field when create code block by quick insert or menu

* fix: active language input field by arrow up and down
2019-03-05 23:34:14 +08:00
Ran Luo
39e1ea8081
Prism replace codemirror (#516)
* feat: basic use of code block by prism

* opti: remove codemirror from muya

* feat: add highlight to math and frontmatter

* feat: import and export in math block, html block, frontmatter, code block

* update: paragraph ctrl

* feat: copy and paste in new math block and html block

* feat: update code block style in dark theme

* feat: search and replace in code block

* fix: update menu item status when selection changed

* opti: optimization of updateCtrl divide it into clickCtrl and inputCtrl

* opti: search and replace in code block when no lang selected

* opti: copy paste in code block

* feat: insert paragraph before or after code block

* opti: change emoji.js to emoji.json

* feat: auto indent in code block

* opti: auto indent in code block

* opti: remove the use of snabbdom-virtualize

* fix: do not show format float box in code block

* opti: emoji picker

* update: delete some unused codes

* update: electron

* use a temp prismjs2 instead of prismjs
2018-10-23 21:21:58 +08:00
Jocs
315cdc6614 update: change log 2018-10-10 14:29:26 +08:00
jocs
2f87d334dc fix: wrong arrow action in table 2018-10-09 20:58:14 +08:00
jocs
b3a8925785 feat: rewrite image picker and delete previous float box 2018-10-08 23:11:08 +08:00
Jocs
65da93f820 opti: extract click event into single file 2018-10-06 21:37:54 +08:00
Jocs
71cf08bb96 opti: lib structure optimization 2018-10-06 14:52:19 +08:00
Maksym Dogadailo
bf839b5a4b Arrow key up/down navigation in a table (#470)
* fix: arrow key up/down navigation in table

When the cursor is active and pressing up/down key in the table, the cursor should leave the table.

* style: remove unnecessary space

* fix: parent table can be inside a list

Fix getting the table when it inside another element.
Now it should take first parent table.

* fix: replace/remove getTable with getTableBlock
2018-08-19 19:12:41 +08:00
Ran Luo
405d04ce19
package and release muya (#413) 2018-07-07 00:10:30 +08:00