Commit graph

854 commits

Author SHA1 Message Date
Lucas.Xu
cd0f67a48e feat: scroll to top or bottom directly when using meta+shift+arrow up/down 2023-06-23 09:56:37 +08:00
Lucas.Xu
42cd0469b2 fix: checkbox align 2023-06-22 21:19:57 +08:00
Lucas.Xu
32699764c3
fix 1.0.4 known issues (#242)
* fix: shouldn't show toolbar when selecting the divider

* fix: link and text color not in the format bar when selecting multiple lines

* fix: /checkbox doesn't enter the edit mode
2023-06-22 21:12:02 +08:00
Lucas.Xu
eec1d19de7
fix: the cursor is inaccuracy when the text contains special emoji (#238) 2023-06-22 15:06:53 +08:00
Lucas.Xu
3614cc5bf1
Revert "fix: copy handler migrated to latest api (#192)" (#236)
This reverts commit ad838cfa86.
2023-06-22 10:04:42 +08:00
Lucas.Xu
5b2ea642e4
fix: focus node doesn't work on mobile (#227) 2023-06-21 17:54:04 +08:00
Lucas.Xu
4f83b6feb9
feat: support broadcast the transaction before applying it (#226) 2023-06-21 13:21:52 +08:00
Lucas.Xu
d4a2d0275e
fix: using IME on macOS will lose focus sometimes (#223) 2023-06-21 13:06:16 +08:00
Lucas.Xu
f3012504b6 chore: bump version 1.0.4 2023-06-21 10:20:15 +08:00
Lucas.Xu
1eff009724
feat: support IME in macOS (#221) 2023-06-21 10:08:37 +08:00
Aman Negi
03bc577fcd
feat: add underline shortcut (#199)
* feat: Add underline divider shortcut

* chore: stage uncommitted files

* chore: Add tests for character_shortcut_event
2023-06-20 22:33:46 +08:00
Lucas.Xu
b0fa1fffa1
fix: mobile selection scroll should work on both side (#220)
* fix: the cursor is blocked by the soft keyboard in some cases

* fix: mobile selection scroll should work on both side
2023-06-20 20:42:39 +08:00
Lucas.Xu
421ea5917c
feat: support customizing number of the numbered list (#219)
* feat: support customizing number of the numbered list

* test: add tests
2023-06-20 17:13:10 +08:00
Ali Hassan
ad838cfa86
fix: copy handler migrated to latest api (#192)
* fix: copy handler migrated to latest api

* flutter analyze

* code formatted

* fix: test added for copy handler

* more test added for copy handler

* fix:write test for copy handler

* text added for html to nodes

* fix: added more test for html encoder

* fix:removed unused imports

* fix: copyhandler collapse state test added

* added direct event handler in test

* flutter analyze

* revert changes in example.json
2023-06-20 17:12:14 +08:00
Lucas.Xu
2d3ab80c8f
fix: #215 unable to delete the divider via backspace (#216) 2023-06-20 15:31:55 +08:00
Lucas.Xu
9610ab8ce0
fix: numbered lists have issue with the dot (#217) 2023-06-20 11:52:00 +08:00
Lucas.Xu
2a5069d62b chore: remove floating action button 2023-06-20 11:07:44 +08:00
Jason Wen
c8e7cb69cc
fix: added default options to both text color and background color me… (#208)
* fix: added default options to both text color and background color menus (#202)

* Formatting

* formatted using dart format

* chore: refactor the format logic

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2023-06-20 10:44:00 +08:00
Mohammad Zolfaghari
86f2d2438c
fix: toolbar position at most top (#214)
* fix: toolbar position at most top

* test: add test

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2023-06-20 10:42:57 +08:00
Lucas.Xu
6e79060260
feat: support mobile drag selection (#209)
* feat: add handler for mobile selection widget

* feat: support dragging handler to update selection

* chore: format code

* feat: support dragging the cursor on mobile platform

* feat: optimize the scroll service
2023-06-20 10:26:22 +08:00
Mukund Tandon
b298ceb643
feat: added code block support for conversion from markdown to document (#197)
* feat: added support for markdown codeblock to be converted to ducument

* test: added test for code block support for markdown to document conversion

* fix: disabled encode html which use to cause covert double quotes to &quot

* fix: the issue of all code being displayed in single line is fixed

* fix: fixed failing checks

* fix: fixed failing checks

* fix: fixed failing test

* Update lib/src/plugins/markdown/decoder/delta_markdown_decoder.dart

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>

* fix: made changes from the code review

* refactor: made changes in code to handle edge cases and made changes given in code review

* fix: fixed failing checks

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2023-06-19 10:08:31 +08:00
Mayur Mahajan
860205c017
fix: behaviour of home and end keys on windows (#213)
* feat: add ctrl+home or end to scroll

* fix: home and end to move in line

* fix: typo redo

* test: home and end command

* fix: ctrl+arrow still works on windows and linux

* test: check behavior on windows nd linux
2023-06-19 09:50:41 +08:00
Lucas.Xu
4f077aeb2a
feat: optimize the scroll service (#210) 2023-06-16 19:24:22 +08:00
Lucas.Xu
76c854bd5a
fix: tabbing whitespace at the front will convert current paragraph into heading (#206) 2023-06-16 11:27:51 +08:00
Mayur Mahajan
eb9e6b69fa
chore: export keymapping file and fix outdent typo (#207)
* chore: export key mapping file

* chore: typo in outdent handler
2023-06-16 11:27:38 +08:00
Lucas.Xu
fd91122919 chore: bump version 1.0.3 2023-06-15 15:53:51 +08:00
Lucas.Xu
d2460c9594
feat: enable customizing editor's focus (#198) 2023-06-15 12:40:22 +08:00
Lucas.Xu
23bc6d2f58
feat: support current editting value (#196)
* feat: clear selection when losing focus

* feat: support currect editing value in delta_input_service
2023-06-14 19:23:07 +08:00
Lucas.Xu
9bc82c072a
feat: clear selection when losing focus (#194) 2023-06-14 19:12:54 +08:00
Lucas.Xu
dd3fa21fed chore: bump version 1.0.2 2023-06-13 14:08:43 +08:00
Yijing Huang
6a4a8ae818
feat: mobile tool bar basic features (#161)
* refactor: refactor mobile toolbar

* feat: add text decoration icon in AFMobileIcons

* chore: update mobile parameter

* feat: add text decoration basic feature

* chore: replace text by AppFlowyEditorLocalizations

* feat: add code toolbar item

* chore: refactor code
- add hasMenu in MToolbarItem
- add const size

* feat: add line input menu

* chore: create toolbar items draft file

* refactor: textDecorationMToolbarItem refactor

* fix: add key to ensures MToolbarWidget is rebuilt whenever the selection changes

* feat: add link toolbar item and the way to close item menu

* chore: replace m by mobile

* chore:replace BuiltInAttributeKey by FlowyRichTextKeys

* chore: replace m by mobile

* refactor: refactor MobileToolbarWidget

* refactor: add MobileToolbarStyle to control all cosmetic parameters

* refactor: refactor MobileToolbarItemMenuBtn to stateless widget

* feat: add heading menu

* fix: fix open the wrong menu

* feat: add heading icon

* feat: add todo list and list toolbar item

* feat: add quote toolbar item

* fix: fix selection service error

* test: add mobile toolbar basic elements test

* test: add item menu button test and helper widgets

* test: add text decoration mobile toolbar item test

* test: add code mobile toolbar item test

* test: add heading mobile toolbar item test

* test: add list mobile toolbar item test

* chore: fix typo

* test: add quote mobile toolbar item test

* test: add todo list mobile toolbar item test

* test: add link mobile toolbar item test

* chore: update name and add Material widget

* fix: flutter analyze

* fix: flutter analyze in test mobile toolbar

* chore: dart format test code

* refactor: improve code

* fix: fix refactor error

* chore: move all the tests in mobile to test/mobile

* chore: move toolbar/items to toolbar/desktop/items

* chore: remove the mobileToolbarItemMenuStateKey

* chore: add some comments

* test: update testing

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2023-06-13 14:01:08 +08:00
Lucas.Xu
c0dbd025e0
feat: support shrinkwrap inside editor (#186)
* feat: support shrinkwrap inside editor

* test: add unit test for shrinkwrap
2023-06-12 20:41:15 +08:00
Lucas.Xu
ddab95c65c
feat: support updating character of character shortcut event (#187)
* feat: support updating character of character shortcut event

* test: add unit test for character_shortcut_event
2023-06-12 20:05:53 +08:00
Lucas.Xu
bd1a5b0dfe
chore: mark selectionMenuItems as deprecated (#182) 2023-06-12 17:23:04 +08:00
Lucas.Xu
a454ee223d
chore: bump version 1.0.1 (#181) 2023-06-11 14:36:23 +08:00
Ali Hassan
27b50e5c15
fix: nested elements getting ignored (#178)
* fix: nested elements getting ignored

* fix: quote block return single node

* fix:quote block element return quotenode
2023-06-11 14:21:21 +08:00
Lucas.Xu
89fc562143
chore: remove the unused code (#177) 2023-06-11 12:42:10 +08:00
Ali Hassan
6677e2ae62
fix: editor document to html encoder added (#175)
* fix:added html document encoder

* code optimization

* code refactored

* correction of the html attributes variable
2023-06-09 14:30:29 +08:00
Lucas.Xu
7fe5bb85d4 fix: text color and background color picker overflow 2023-06-07 22:18:28 +08:00
Lucas.Xu
0e48c9d666 fix: lost cursor after copying multiple paragraphs 2023-06-07 22:18:28 +08:00
Lucas.Xu
7ab13fc361 feat: implement ime on macOS 2023-06-07 22:18:28 +08:00
Lucas.Xu
f507c07bc4 fix: after selecting some text and typing a character, one more character will be deleted. 2023-06-07 22:18:28 +08:00
Gunjan Lunkad
eeae6fe818
feat: added divider to work with * (#118)
* feat: Added divider to work with *

* chore: Resolved the suggested changes

* refactor: removed the check for star character

* feat:added  character variable to insert divider .

* feat: support converting stars ** to divider

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2023-06-07 15:58:28 +08:00
Lucas.Xu
77e0f6ce6f chore: bump version 1.0.0 2023-06-07 11:06:15 +08:00
Lucas.Xu
6bbb3e72ab chore: bump version 1.0.0-dev.4 2023-06-07 11:02:24 +08:00
Lucas.Xu
7ed73308dc
Merge pull request #173 from LucasXu0/main
fix: nested line deletion
2023-06-07 10:54:56 +08:00
Lucas.Xu
8c88b41244 feat: ignore delete op if it has been deleted 2023-06-07 10:35:39 +08:00
Lucas.Xu
55b92d278f fix: select all commmand doesn't work in nested list 2023-06-07 10:12:41 +08:00
Lucas.Xu
b1514f2b7b
Merge pull request #172 from LucasXu0/main
fix: block selection area overflow
2023-06-07 09:53:53 +08:00
Lucas.Xu
4cf9cd41ec fix: error in merging the text into the node which can't own children 2023-06-06 19:06:46 +08:00