Commit graph appflowy-editor/test
Author SHA1 Message Date
Ali Hassan
3ee7e31416
feat: html encode parser added (#314) 2023-07-20 12:06:00 +08:00
Mukund Tandon
8a76e36b14
feat: support importing images and files from markdown file (#316) 2023-07-19 18:22:11 +08:00
Mohammad Zolfaghari
3bd7c2aaa2
fix: indent padding from left when rtl (#318) 2023-07-19 15:58:27 +08:00
Yijing Huang
7aa337447b
feat: add edit link menu on mobile (#320) 2023-07-19 15:58:17 +08:00
Yijing Huang
8ff97b30aa
chore: restore CI (#310) 2023-07-19 14:04:01 +08:00
Lucas.Xu
33b18d98dc
fix: block selection overflow (#312) 2023-07-13 19:56:12 +08:00
Mayur Mahajan
2ab67ee217
feat: delete right word with ctrl+delete (#309) 2023-07-13 19:25:50 +08:00
Mayur Mahajan
68300149bf
feat: support for shift+home/end keys (#306) 2023-07-13 19:25:14 +08:00
Yijing Huang
87fd7ed82d
feat: improve keyboard behavior in mobile toolbar (#287) 2023-07-12 22:14:45 +08:00
Garv Shah
d87d353535
fix: allow active toolbar item color to be customized (#261) 2023-07-12 15:52:50 +08:00
Lucas.Xu
5f136df356
feat: remove the reference of the deprecated values (#304)
* feat: remove the reference of the deprecated values

* chore: add migration guide
2023-07-12 13:21:54 +08:00
Mohammad Zolfaghari
f8da435ad5
feat: support RTL and auto direction (#191) 2023-07-12 10:51:38 +08:00
Mayur Mahajan
fc7b4e5c81
chore: change windows and linux command for redo (#294) 2023-07-11 22:34:05 +08:00
Bram Tertoolen
4c05667cf2
feat: handle nested italics in bold text (issue 2324) (#105) 2023-07-10 21:32:42 +08:00
Chandan C V
7cb4bc6fb2
fix: should not open link menu when selection is collapsed (#117) 2023-07-10 11:15:48 +08:00
Mayur Mahajan
49752db13f
test: for testing parent child delete case (#296)
* test: add test for parent child delete case

* docs: suitable names to arrow commands
2023-07-10 11:12:52 +08:00
Mayur Mahajan
3f7c9fe2b5
feat: implement delete command shortcut (#272) 2023-07-07 19:49:51 +08:00
Lucas.Xu
46158d9e26
feat: customize href (#293) 2023-07-07 16:07:47 +08:00
Lucas.Xu
2ed30f3903
feat: public node and index in TextSpanDecoratorForCustomAttributes (#288) 2023-07-05 16:09:05 +08:00
Lucas.Xu
bb3771af63
chore: bump version 1.1.0 (#284) 2023-07-04 14:07:23 +08:00
Lucas.Xu
2b2bce4f3c
fix: analysis issues (#283) 2023-07-04 11:22:35 +08:00
Yijing Huang
13805afc33
feat: customized color options (#270) 2023-07-04 10:38:42 +08:00
Yijing Huang
31934d7acd
feat: divider toolbar item in mobile (#281) 2023-07-04 10:09:44 +08:00
Lucas.Xu
070ceb3e27
feat: migrate the delta encoder (#277) 2023-07-03 19:19:32 +08:00
Vincenzo Ursano
c8082d38df
feat: support exitting the link menu by pressing ESC 2023-07-03 17:05:42 +08:00
Yijing Huang
8bfb37f691
fix: keep keyboard appearance as same brightness as system theme (#264) 2023-07-03 12:51:18 +08:00
Lucas.Xu
87a164256e
feat: support customizing the block icon (#274) 2023-07-03 11:07:43 +08:00
Lucas.Xu
435f1a6f9a
feat: support customizing image menu (#265) 2023-06-30 13:40:18 +08:00
Mukund Tandon
ed75bf61df
feat: support uploading images from local files (#232) 2023-06-28 19:59:59 +08:00
Vedant Pandey
a1ae5eae69
fix: add underline syntax parser (#256) 2023-06-27 22:21:03 +08:00
Yijing Huang
09fd4c8d56
feat: text and background color in mobile toolbar (#233)
* refactor: move shared code out of desktop

* refactor: fix double exist error and extract color option

* feat: update color icon

* refactor: refactor MobileToolbarItemMenuBtn to be more flexiable

* feat: add textAndBackgroundColorMobileToolbarItem

* chore: dart fix

* refactor: extract MobileToolbarMenuGridDelegate

* chore: update UI parameters

* refactor: delete format color in format_rich_text_style.dart and refactor the code

* chore: remove the bottom line of tabbar

* refactor: set color opitions to be customizable

* chore: add scrollbar in opitions grid view

* test: update code to pass the previous tests

* chore: add Material in testing

* chore: unify text and background default color opitions

* test: add textAndBackgroundColorMobileToolbarItem test

* chore: update AppFlowyEditorLocalizations

* chore: replace string by components' key in tests

* test: add color options widgets tests

* chore: dart fix

* chore: dart format
2023-06-25 15:06:52 +08:00
Lucas.Xu
d359da89c9
feat: support customizing text attribute key and rendering (#244) 2023-06-23 18:36:33 +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
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
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
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
76c854bd5a
fix: tabbing whitespace at the front will convert current paragraph into heading (#206) 2023-06-16 11:27:51 +08:00
Lucas.Xu
d2460c9594
feat: enable customizing editor's focus (#198) 2023-06-15 12:40:22 +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