Commit graph appflowy-editor/lib/src/editor
Author SHA1 Message Date
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
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
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
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
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
89fc562143
chore: remove the unused code (#177) 2023-06-11 12:42:10 +08:00
Lucas.Xu
7fe5bb85d4 fix: text color and background color picker overflow 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
55b92d278f fix: select all commmand doesn't work in nested list 2023-06-07 10:12:41 +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
Lucas.Xu
d4af9b06f5 fix: upload image menu overflow 2023-06-06 18:40:38 +08:00
Lucas.Xu
a74da46f0c fix: nested list background color overflow 2023-06-06 18:10:41 +08:00
Lucas.Xu
86f56281cd fix: block selection size overflow 2023-06-05 20:14:18 +08:00
Lucas.Xu
94a5155d90
Merge pull request #167 from LucasXu0/text_color_icon
fix: toolbar item size and scroll widget layout
2023-06-05 16:14:33 +08:00
Lucas.Xu
0a2b807c30 feat: add image align 2023-06-05 16:05:04 +08:00
Lucas.Xu
072f4922d1 fix: the image menu is overflow 2023-06-05 14:43:23 +08:00
Lucas.Xu
f2630b4e93 fix: toolbar item size and scroll widget layout 2023-06-05 13:16:20 +08:00
Mukund-Tandon
20a9b96741 fix: fixed toolbar item tooltip desciption for embed code button 2023-06-03 21:00:47 +05:30
Lucas.Xu
a7d2d32055 fix: unable to delete node on the mobile platform 2023-06-01 15:09:54 +08:00
Lucas.Xu
c573b9a80f
feat: rename delta and document (#153)
* chore: rename delta

* fix: rename attributes to data

* chore: rename document to page

* fix: flutter analyze
2023-06-01 14:43:12 +08:00
Lucas.Xu
f41b340153 fix: flutter analyze 2023-05-31 16:10:44 +08:00
Lucas.Xu
839bb94cba feat: support paste html 2023-05-31 16:05:49 +08:00
Lucas.Xu
2bc87a99bd fix: migrate html to node converter to latest changes 2023-05-31 13:00:59 +08:00
Lucas.Xu
5fc5419d4e fix: Problem with the position of the floating operation bar 2023-05-31 11:38:12 +08:00
Lucas.Xu
5e80416c17 fix: floating toolbar won't dismiss when open another document 2023-05-30 18:44:22 +08:00
Lucas.Xu
bf4abe0b52 feat: support customizing floating toolbar background color 2023-05-30 18:41:51 +08:00
Lucas.Xu
d49bfea17d feat: support auto scroll after selection updated 2023-05-29 17:42:51 +08:00
Lucas.Xu
0f9c453361
fix reported bugs (#140)
* fix: slash menu doesn't work

* fix: #2586 Down arrow skips one line

* fix: #2587 Capitalize the first letters
2023-05-29 15:59:42 +08:00
Lucas.Xu
b7728f20ae Revert "fix: remove action container space in mobile (#135)"
This reverts commit 5f4e9ef17e.
2023-05-29 14:51:24 +08:00
Lucas.Xu
30ce149371
fix: new editor bugs (#137)
* chore: rename file to avoid pub get error

* fix: cursor blink

* fix: remove redundant padding on the mobile platform

* feat: customize the style of the selection menu
2023-05-27 21:15:05 +08:00
Yijing Huang
5f4e9ef17e
fix: remove action container space in mobile (#135) 2023-05-27 21:14:37 +08:00
Mathias Mogensen
cbe2902373
chore: upgrade flutter to 3.10.1 (#136)
* chore: upgrade to flutter 3.10.1

* cicd: update actions

* fix: example application upgrade

* fix: formatting issues
2023-05-26 10:04:33 +08:00
Lucas.Xu
72a9f2ce3b fix: flutter analyze 2023-05-24 09:32:49 +08:00