Commit graph

877 commits

Author SHA1 Message Date
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
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
2c73786ead chore: bump version 1.0.0-dev.3 2023-06-06 15:40:32 +08:00
Lucas.Xu
cfff081294
Merge pull request #171 from LucasXu0/main
fix: the default index should be 0 in slash menu
2023-06-06 15:38:17 +08:00
Lucas.Xu
ec076db18f fix: the default index should be 0 in slash menu 2023-06-06 13:52:28 +08:00
Lucas.Xu
ce3c79f53a
Merge pull request #169 from LucasXu0/main
fix: block selection size overflow
2023-06-06 10:34:44 +08:00
Lucas.Xu
86f56281cd fix: block selection size overflow 2023-06-05 20:14:18 +08:00
Lucas.Xu
90bed43b46
Merge pull request #168 from LucasXu0/1.0.0-dev.2
chore: bump version 1.0.0-dev.2
2023-06-05 16:21:38 +08:00
Lucas.Xu
d1db66519b chore: bump version 1.0.0-dev.2 2023-06-05 16:20:36 +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
22d699943a fix: editor still editable even editable boolean is false when select on editor area 2023-06-05 13:36:45 +08:00
Lucas.Xu
751485ca47 fix: remove the use of document.empty 2023-06-05 13:27:34 +08:00
Lucas.Xu
2510f6bf8b
Merge pull request #163 from Mukund-Tandon/fix_toolbar_item_description_162
fix: fixed toolbar item tooltip desciption for embed code button
2023-06-05 13:24:56 +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
25ac5b2226
Merge pull request #155 from LucasXu0/1.0.0-dev.1
chore: bump version 1.0.0-dev.1
2023-06-01 15:29:18 +08:00
Lucas.Xu
194cbcde1b chore: bump version 1.0.0-dev.1 2023-06-01 15:25:38 +08:00
Lucas.Xu
03f492f544
Merge pull request #154 from LucasXu0/fix_#147
fix: Node cannot be deleted on the mobile phone
2023-06-01 15:21:07 +08:00
Ali Hassan
a77b25aa50
fix: convert html to document (#152)
* fix:html to node converter fixes

* html tests added

* html decoder optimization

* feat: refactor code

* mobile platforms added

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2023-06-01 15:20:42 +08:00
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
6b5d48cfcb
Merge pull request #146 from LucasXu0/fix_#142
fix: problem with the position of the floating operation bar
2023-05-31 16:28:28 +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