Commit Graph

622 Commits

Author SHA1 Message Date
Vincent Chan
223c8cafd4 fix: crashes when deleting emoji 2022-08-10 18:07:25 +08:00
Vincent Chan
b5ecd7dedc test: next runes 2022-08-10 18:03:39 +08:00
Vincent Chan
c554720dff fix: emoji position 2022-08-10 17:50:27 +08:00
Vincent Chan
bee1a04329 feat: compute string indexes 2022-08-10 17:50:27 +08:00
Vincent Chan
45556ae015 refactor: flutter style optional chaining 2022-08-10 17:50:27 +08:00
Vincent Chan
eb519f4e11 feat: add cache to text_delta 2022-08-10 17:50:27 +08:00
Vincent Chan
737e374a54 refactor: text-delta 2022-08-10 17:50:27 +08:00
Vincent Chan
a26b693807 feat: add comments to HTMLConvertert 2022-08-10 16:06:00 +08:00
appflowy
0d6c04ae81 chore: load field typeOption 2022-08-10 16:04:04 +08:00
Vincent Chan
0c0039ca95 Merge branch 'main' into feat/copy-styles 2022-08-10 15:28:39 +08:00
Vincent Chan
c2a295d9cd feat: copy styles of text delta 2022-08-10 15:26:14 +08:00
Lucas.Xu
046faf3880 fix: unexpect behaviour when pressing enter key 2022-08-10 15:07:30 +08:00
Lucas.Xu
79591791c1 chore: move all code into src/ 2022-08-10 14:33:54 +08:00
Vincent Chan
20fb714550 refactor: rename highlightColor to backgroundColor 2022-08-10 14:22:35 +08:00
Vincent Chan
430e9974be feat: convert number list 2022-08-10 13:53:10 +08:00
Vincent Chan
e606306635 feat: converter 2022-08-10 13:39:29 +08:00
Vincent Chan
4140994fed feat: paste ordered list 2022-08-10 13:17:58 +08:00
Vincent Chan
a59c809847 feat: copy checkbox style 2022-08-10 11:44:32 +08:00
Vincent Chan
d40a3c33fd feat: copy paste check box 2022-08-10 11:28:56 +08:00
Nathan.fooo
7f249ebae2
Merge pull request #801 from LucasXu0/feat/text_style
Feat/text style
2022-08-09 19:53:31 +08:00
Lucas.Xu
6a27c490aa fix: selection error in edge 2022-08-09 19:43:28 +08:00
Lucas.Xu
215587a507 chore: format code 2022-08-09 19:37:46 +08:00
Lucas.Xu
3e256be0b9 fix: checkbox placeholder error 2022-08-09 19:19:35 +08:00
Lucas.Xu
0650c40d9d fix: checkbox error
pressing Enter after a checked-off item, the new checkbox is also checked off. it should be unchecked when it’s newly created.
2022-08-09 19:11:21 +08:00
Lucas.Xu
1391d202a9 fix: could not remove text style when pressing enter in empty text node 2022-08-09 19:03:55 +08:00
Lucas.Xu
4223324689 fix: cursor height error 2022-08-09 18:54:33 +08:00
Lucas.Xu
8fa55cfa08 feat: text insert and replace with selection styles 2022-08-09 18:19:11 +08:00
Lucas.Xu
b7cb4b647d fix: the editor loses focus occasionally 2022-08-09 17:52:11 +08:00
Lucas.Xu
e9d8dc9657 feat: increase line spacing 2022-08-09 17:50:32 +08:00
Lucas.Xu
ac3af7e01b
Merge pull request #799 from LucasXu0/feat/text_style
fix: text align error
2022-08-09 15:33:28 +08:00
Lucas.Xu
255cb47876 fix: text align error 2022-08-09 15:32:28 +08:00
Nathan.fooo
befdb10554
Merge pull request #797 from AppFlowy-IO/fix/undo-redo-handler
fix: undo redo handler
2022-08-09 15:23:16 +08:00
Lucas.Xu
a032a0e8db
Merge pull request #798 from LucasXu0/feat/text_style
update text style and document style.
2022-08-09 15:22:14 +08:00
Lucas.Xu
6f32f749bc fix: delete style widget error 2022-08-09 15:15:53 +08:00
Lucas.Xu
4464f2abfe feat: make the text node widget align center. 2022-08-09 14:50:31 +08:00
Vincent Chan
7c58654fe8 fix: undo redo handler 2022-08-09 14:04:40 +08:00
Nathan.fooo
b9de45a110
Merge pull request #792 from LucasXu0/feat/mouse_cursor_style
Feat/mouse cursor style
2022-08-09 13:48:49 +08:00
Nathan.fooo
aaee3003ce
Merge pull request #793 from AppFlowy-IO/feat/refactor_plugin_path
Refactor plugins path
2022-08-09 12:37:52 +08:00
Lucas.Xu
b9c0c1209a feat: support more command + x shortcut 2022-08-09 11:46:40 +08:00
Vincent Chan
8e310d233f
Merge pull request #790 from AppFlowy-IO/feat/copy-styles
Feat/copy styles
2022-08-09 11:30:30 +08:00
Lucas.Xu
f4a31768cb feat: support rendering text background color and text color 2022-08-09 11:20:53 +08:00
Lucas.Xu
fdbecd7f10 fix: typo 2022-08-09 10:46:51 +08:00
Lucas.Xu
06d11a91d1 feat: lineThrough and underline can coexist 2022-08-09 10:44:00 +08:00
appflowy
61df3848e4 chore: update appflowy_board pub.dev config 2022-08-09 10:03:42 +08:00
Lucas.Xu
585c9f8753 fix: fix something wrong when deleting the text nodes 2022-08-08 23:28:40 +08:00
Lucas.Xu
af2f6a03d5 feat: implement logic that pressing enter key without shift key in text nodes 2022-08-08 23:18:07 +08:00
Lucas.Xu
364a8e6ad2 chore: replace 'checkbox' with StyleKey.checkbox 2022-08-08 22:29:02 +08:00
Lucas.Xu
6dcf3b3fa7 feat: set mouse cursor style to text when hovering on the text node 2022-08-08 20:34:26 +08:00
Nathan.fooo
70fbcb0de9
Merge pull request #774 from AppFlowy-IO/feat/board_ui
Feat/board UI
2022-08-08 20:27:20 +08:00
Nathan.fooo
ef8d154736
Merge pull request #788 from LucasXu0/fix/ime_error
fix: could not delete character when using IME
2022-08-08 20:08:12 +08:00
appflowy
0abd62829c chore: update pubspec path 2022-08-08 19:59:17 +08:00
Vincent Chan
9d9b0e5878 feat: add stringify tag 2022-08-08 19:09:19 +08:00
Nathan.fooo
0bf4a79ec9
Merge pull request #787 from AppFlowy-IO/feat/add-default-impl-for-image
Feat: add default impl for image
2022-08-08 18:47:48 +08:00
Nathan.fooo
a138b32c8e
Merge pull request #786 from LucasXu0/feat/markdown_input
implement markdown input style, like, #, *, -, -[]
2022-08-08 18:47:16 +08:00
appflowy
db5b3e3bd3 chore: update ui 2022-08-08 18:43:37 +08:00
Lucas.Xu
27ea5a11a9 feat: disable scroll when showing popuplist 2022-08-08 18:40:09 +08:00
Lucas.Xu
6e71ec23a1 feat: delete slash when using the popuplist and pressing enter key 2022-08-08 18:24:11 +08:00
Lucas.Xu
1ece5cfd9e feat: binary search selection supports searching child nodes 2022-08-08 18:11:20 +08:00
Naughtz
0d1eb5e48d
Merge branch 'AppFlowy-IO:main' into main 2022-08-08 16:45:48 +08:00
Lucas.Xu
2f84d7e54e fix: fix crash when selecting the last node 2022-08-08 16:17:17 +08:00
Lucas.Xu
dc018bc7e4 fix: could not delete character when using IME 2022-08-08 16:08:01 +08:00
Vincent Chan
91c62cb0ae feat: add default impl for image node 2022-08-08 15:46:02 +08:00
Lucas.Xu
19fc154681 feat: implement markdown input, like, #, *, -, -[] 2022-08-08 15:33:11 +08:00
Vincent Chan
7eb95def7c feat: handle triple tap 2022-08-08 14:43:45 +08:00
Lucas.Xu
7855e5403c feat: convert text to bulleted list style when inputing '* ' or '- ' 2022-08-08 13:59:38 +08:00
Naughtz
237f2f6190
Merge branch 'AppFlowy-IO:main' into main 2022-08-08 13:39:46 +08:00
Lucas.Xu
849e19e1ef fix: popuplist will not show when the selection is not collapsed 2022-08-08 13:37:56 +08:00
Naughtz
402b29b3e3 feature: MouseCursor for expanding row #687 2022-08-08 12:04:28 +08:00
Lucas.Xu
9b9de523da fix: flowy_rich_text will not automatically wrap when the text exceeds a line 2022-08-08 10:54:09 +08:00
appflowy
971a5e245a chore: rename folder 2022-08-08 10:49:00 +08:00
Lucas.Xu
25387cd0b0 feat: customizes quoted text style 2022-08-08 10:29:45 +08:00
Lucas.Xu
59838f5845 feat: customizes checkbox text style 2022-08-08 10:29:45 +08:00
Lucas.Xu
f6fbe55477 feat: flowy_rich_text supports placeholder and customizes placeholder style 2022-08-08 10:29:45 +08:00
Lucas.Xu
274b3d1d25 fix: focusNode lost focus 2022-08-08 10:29:45 +08:00
appflowy
a333f558f4 chore: rename flowy_board to appflowy_board 2022-08-08 10:27:58 +08:00
Lucas.Xu
2b113aae7f chore: format code 2022-08-08 10:23:43 +08:00
appflowy
ae57216c0a chore: add license 2022-08-07 16:11:42 +08:00
Lucas.Xu
fb267ace18 feat: optimize the calculation of cursor position and selection position 2022-08-07 12:18:16 +08:00
Lucas.Xu
7e6c7a2b4e feat: refactor current selection and current selectedNodes in selection_service 2022-08-07 11:45:27 +08:00
appflowy
1ba24c00ba chore: fix reset phantom record bug 2022-08-07 11:26:45 +08:00
appflowy
621c9615a1 chore: update import path 2022-08-07 10:46:31 +08:00
appflowy
c035c9cf93 chore: config insert animation 2022-08-06 14:52:39 +08:00
appflowy
151e735d27 chore: dart fmt 2022-08-06 11:21:25 +08:00
Lucas.Xu
4b4ce1020d feat: optimize selection implement by binary search 2022-08-06 00:08:03 +08:00
Nathan.fooo
25226bf26b
Merge pull request #769 from AppFlowy-IO/feat/handle-google-docs-style
Feat: handle google docs html style
2022-08-05 23:56:39 +08:00
Nathan.fooo
adc03a1741
Merge pull request #772 from AppFlowy-IO/feat/video_plugin
feat: implement youtube link plugin
2022-08-05 23:55:40 +08:00
Nathan.fooo
4d6227c502
Merge pull request #773 from LucasXu0/feat/macos_ime_support
feat: support IME in macOS
2022-08-05 23:55:23 +08:00
appflowy
8ca1cc0a21 chore: add documentation 2022-08-05 23:53:50 +08:00
appflowy
9e4dbc53f7 chore: add documentation 2022-08-05 20:33:00 +08:00
Lucas.Xu
ec47aa51a1 feat: support IME in macOS 2022-08-05 20:05:36 +08:00
annie
9b86e06377 feat: implement video plugin 2022-08-05 19:42:39 +08:00
Nathan.fooo
d758cc749a
Merge pull request #768 from LucasXu0/feat/auto_scroll_service
implement autoscrolling on edge touch
2022-08-05 19:25:02 +08:00
Vincent Chan
e472c64506 feat: handle google docs paste style 2022-08-05 15:04:24 +08:00
appflowy
2e0256f305 fix: inserted index out of boundr 2022-08-05 12:51:47 +08:00
appflowy
e592a09ec3 chore: remove phantom where dragTarget disappear 2022-08-05 12:09:27 +08:00
appflowy
3977925e8a chore: add documentation 2022-08-05 11:59:20 +08:00
Lucas.Xu
70853b918e Merge remote-tracking branch 'origin/main' into feat/toolbar_service 2022-08-05 11:04:21 +08:00
Lucas.Xu
e5787090d2 feat: implement autoscrolling on edge touch 2022-08-05 10:59:51 +08:00
Vincent Chan
593cc253c2 fix: transform error 2022-08-05 10:59:17 +08:00
Vincent Chan
b667c912a7 feat: cut content 2022-08-05 10:59:17 +08:00
appflowy
a0d7f114c0 fix: invalid drag start index 2022-08-05 10:29:39 +08:00
appflowy
c25237c767 fix: reorder bugs 2022-08-05 09:49:16 +08:00
appflowy
20f34dc952 Merge branch 'main' into feat/board_ui_temp 2022-08-04 23:33:39 +08:00
appflowy
146cc5c5e9 fix: fix some bugs 2022-08-04 23:30:27 +08:00
appflowy
e8dad2ef03 chore: update 2022-08-04 21:12:26 +08:00
appflowy
9ea4c8b260 chore: add overlap dragTarget interceptor 2022-08-04 18:19:53 +08:00
appflowy
dbc5de2968 chore: update board layout, support footer and header 2022-08-04 15:08:15 +08:00
Vincent Chan
8b60cd7abd refactor: use node iterator for selection 2022-08-04 11:45:18 +08:00
Vincent Chan
2eecda0483 refactor: from node traverser to node iterator 2022-08-04 10:56:24 +08:00
Vincent Chan
061168bd82 refactor: use contant variable 2022-08-04 10:41:07 +08:00
Lucas.Xu
90fa1312f2 fix: update the selection after render completed 2022-08-03 22:53:19 +08:00
Lucas.Xu
eb7c65aa8b feat: add empty document entry in example 2022-08-03 22:12:52 +08:00
Lucas.Xu
58d656d9f4 feat: implement selectable popup list widget 2022-08-03 22:12:09 +08:00
appflowy
a4b4b20cfc chore: config board ui 2022-08-03 20:39:08 +08:00
Vincent Chan
7ef053eb0d feat: copy multiple text 2022-08-03 19:50:39 +08:00
Vincent Chan
8da6faa74b feat: node traverser 2022-08-03 19:36:38 +08:00
Vincent Chan
2a6412f81a feat: copy from html 2022-08-03 18:18:04 +08:00
Lucas.Xu
1166d03b75 feat: update selection position after updating text node style. 2022-08-03 17:05:09 +08:00
Lucas.Xu
35bafbaadc feat: implement popup list service 2022-08-03 16:34:11 +08:00
Vincent Chan
290435b0ee feat: paste text inside text 2022-08-03 16:06:07 +08:00
Vincent Chan
e73465170a feat: paste html rich text inside text 2022-08-03 15:33:54 +08:00
Vincent Chan
aba84a3ccd feat: paste inside the TextNode 2022-08-03 15:33:54 +08:00
Vincent Chan
4e3e9d1a2c feat: paste hyper link 2022-08-03 15:33:54 +08:00
Vincent Chan
67fd06366e feat: handle HTMLElement 2022-08-03 15:33:54 +08:00
Vincent Chan
d283211671 feat: paste multi lines text 2022-08-03 15:33:54 +08:00
Vincent Chan
40c3f07be4 feat: use patch nodes 2022-08-03 15:33:54 +08:00
Vincent Chan
9ceced4648 feat: parse html 2022-08-03 15:33:54 +08:00
Vincent Chan
ee25f032db feat: copy & paste key event handlers 2022-08-03 15:33:54 +08:00
Lucas.Xu
a3bd9fd0e1 feat: expand rich text to handle gestures.
(cherry picked from commit ce1eca28e1b9a5ef443f1123ac1b33d89efb6788)
2022-08-03 10:08:49 +08:00
tsuiyuenhong
7de2f7fa49 Merge remote-tracking branch 'origin/main' into feat/flowy_editor 2022-08-03 09:04:16 +08:00
Nathan.fooo
114e58ff14
Merge pull request #414 from verebes1/main
feat: Add Polish translation
2022-08-03 08:17:01 +08:00
Lucas.Xu
c7432e640b feat: delay rendering selection(need to be refactored). 2022-08-02 20:22:39 +08:00
Lucas.Xu
397f43cbe1 feat: implement remove subtype if text node is empty when pressing enter key 2022-08-02 20:08:32 +08:00
Lucas.Xu
a1be60721e fix: pressing enter key in the edge of node doesn't work good. 2022-08-02 17:16:07 +08:00
Lucas.Xu
5fdcdbd357 fix: bulleted-list typo 2022-08-02 17:15:07 +08:00
Lucas.Xu
fa05170c86 chore: fix test error 2022-08-02 16:25:35 +08:00
Lucas.Xu
56ac86fb51 chore: add some comments in image plugins. 2022-08-02 15:44:32 +08:00
Lucas.Xu
b913db2301 Merge remote-tracking branch 'origin/feat/flowy_editor' into feat/flowy_editor_input_service 2022-08-02 15:15:48 +08:00
Lucas.Xu
14bd18e21c feat: implement enter key event handler and keep attributes after insert 2022-08-02 14:27:16 +08:00
Lucas.Xu
1ba15b321b feat: implement revert text in toolbar service 2022-08-02 11:47:48 +08:00
Lucas.Xu
9b6afcc5c9 feat: implement heading, quote, bulleted_list in toolbar service 2022-08-02 11:42:16 +08:00
Lucas.Xu
b11a127432 feat: implement italic, strikethrough and underline in toolbar service 2022-08-02 11:01:58 +08:00
Lucas.Xu
ba78f0073d feat: implement bold text in toolbar service 2022-08-02 10:25:18 +08:00
Nathan.fooo
598a910c0c
Merge pull request #752 from LucasXu0/feat/flowy_editor_input_service
feat: implement toolbar UI part.
2022-08-02 09:55:10 +08:00
Lucas.Xu
5ecfc4ff2e feat: refactor the text editing code 2022-08-02 09:45:19 +08:00
Lucas.Xu
159fe63575 feat: implement edit text style by command + x 2022-08-01 22:41:30 +08:00
Vincent Chan
2f58c54b81 refactor: batch insert and delete nodes 2022-08-01 18:09:05 +08:00
Lucas.Xu
06cab949f2 chore: delete unused import, and sort the imports. 2022-08-01 18:05:19 +08:00
Lucas.Xu
846a273de8 feat: rename toolbar 2022-08-01 17:48:16 +08:00
Lucas.Xu
934cb6ab6b feat: implement toolbar UI part. 2022-08-01 17:42:37 +08:00