Commit graph appflowy-editor/lib/src/editor
Author SHA1 Message Date
Lucas.Xu
7b2a4be710 fix: the search service doesn't scroll to the position automatically 2023-10-01 17:42:32 +08:00
Lucas.Xu
384532434c
feat: optimize the find and replace logic (#510) 2023-10-01 16:51:42 +08:00
Lakhan Baheti
2b58d4f9ca
feat: support RTL in toolbar (#496) 2023-09-27 15:34:33 +08:00
Lucas.Xu
d1b9084ffb
fix: unable to update selection sometimes when the editor lost focus (#509) 2023-09-27 09:18:23 +08:00
Lucas.Xu
fbee8e3a6a
fix: delete the divider on mobile will raise an error (#508) 2023-09-26 23:28:05 +08:00
Lucas.Xu
b422187503
fix: the cursor will flicker one frame to its previous position (#506) 2023-09-26 14:36:30 +08:00
Lucas.Xu
c91b037b53 fix: image block rect overflow 2023-09-25 16:53:50 +08:00
Lucas.Xu
c9adbb1714 fix: command shortcuts on the web platform should also respect the operating system 2023-09-24 11:15:07 +08:00
Lucas.Xu
5c291320d7 fix: focus will lost when typing slash 2023-09-24 10:57:57 +08:00
Lucas.Xu
56b0e368bd fix: unable to input text on web platform 2023-09-24 10:55:53 +08:00
Lucas.Xu
8e61846525
fix: unable to change RTL of heading (#495) 2023-09-22 16:15:45 +08:00
Zheng Mao
9a1362e887
fix: fix mobile selection drag (#490) 2023-09-22 11:29:21 +08:00
Lucas.Xu
967e3e82a8 fix: required named parameter 'onLiveTextInput' must be provided 2023-09-21 10:08:56 +08:00
Lucas.Xu
a0ff609cb1
feat: add support for font family and font size attributes in rich text (#486) 2023-09-20 17:37:40 +08:00
Lucas.Xu
6ddee3cc61
chore: bump version 1.4.0 (#484) 2023-09-20 14:35:20 +08:00
Sun Jiao
e37b44f92a
fix: resolve "Bad state: no element" when in-table paragraph deleted (#471) 2023-09-20 14:08:58 +08:00
Sun Jiao
fa207e5ca1
fix: link menu overflow in right (#478)
* fix: link menu overflow in right

* fix: abstract logic

* chore: add type, add comment, mark as private
2023-09-20 14:08:14 +08:00
Mohammad Zolfaghari
189a41f67d
fix: respect default and last direction on new line and indent (#482) 2023-09-20 14:07:38 +08:00
Lucas.Xu
78dd254d1e
feat: add more showcases on desktop/mobile platform (#481) 2023-09-20 11:17:39 +08:00
Lucas.Xu
6699d58631
feat: add more showcases on the mobile platform (#479) 2023-09-18 22:05:17 +08:00
Lucas.Xu
4a87ec4bd4
fix: selection area doesn't show if in the long selection (#477) 2023-09-18 13:30:07 +08:00
Lucas.Xu
db5f5f9694
fix: show reset color button even if one of the selected text was formatted (#476) 2023-09-18 09:46:38 +08:00
Sun Jiao
b65355fb1f
fix: resolve layout problem of FindMenuWidget (#467) 2023-09-17 20:24:03 +08:00
Lucas.Xu
ace17c9723
feat: adjust the loading large documen optimization in mobile platform (#474) 2023-09-17 20:00:22 +08:00
Sun Jiao
ce8a77014e
fix: resolve RangeErrorwhen last row deleted. (#470) 2023-09-17 16:10:14 +08:00
Sun Jiao
1944ab7a29
chore: update l10n (#463) 2023-09-15 10:13:49 +02:00
Mathias Mogensen
f5b3ea87f5
chore: add jumpTo to editor scroll service (#466) 2023-09-15 00:02:05 +02:00
Lucas.Xu
704b65c328 fix: skip the uncessary text editing value update on macOS 2023-09-14 18:42:33 +08:00
Lucas.Xu
e470a9abd2 fix: block selection rect is too small 2023-09-14 17:29:39 +08:00
Lucas.Xu
3e53481468
feat: support customizing the record time (#461)
* feat: support customzing the record time

* fix: background color overflow and block selection doesn't work
2023-09-14 17:17:20 +08:00
Garv Shah
177f742d2c
fix: image upload on web (#453)
* fix: added the ability to upload images on web

* chore: formatting

* chore: formatting

* feat: refactor image upload logic for web and non-web platforms

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2023-09-14 15:39:17 +08:00
Lucas.Xu
edcddd97b6 fix: the selection area of divider is overflow 2023-09-13 17:21:04 +08:00
Lucas.Xu
b602141d32 fix: missing a required trailing comma 2023-09-13 15:26:29 +08:00
Mathias Mogensen
95e111983a
fix: duration cannot be zero in animate (#452) 2023-09-12 16:11:10 +08:00
Lucas.Xu
12be12751d
feat: refactor color conversion method to handle RGB and hex formatsRefactor method to handle RGB and hex formats, improving color conversion (#450) 2023-09-12 11:54:05 +08:00
Lucas.Xu
82c1cf2bf0
fix: unable to paste html contains section (#448) 2023-09-12 10:39:33 +08:00
Lucas.Xu
4a92c88b66
fix: remove unused check in non_delta_input_service (#447) 2023-09-11 21:17:52 +07:00
Lucas.Xu
19f999f422
feat: optimize the performance (#442) 2023-09-11 15:03:14 +08:00
Mayur Mahajan
ad55171c5b
refactor: migrate tests (#438)
* refactor: separate remove line command

* test: delete sentence

* chore: export delete left line command

* refactor: move from internal_key_handler to new

* refactor: move from command to new
2023-09-11 14:24:50 +08:00
Antony Kithinzi
2924c167e2
feat: bulk open links shortcut (#419)
* feat: creating open links shortcut command

* test: open links command

* refactor: applying suggestion

* refactor: fetching all unique links by a chain function
2023-09-11 14:23:45 +08:00
Mathias Mogensen
574741265b
fix: request focus in find replace menu (#440) 2023-09-11 14:21:58 +08:00
Lucas.Xu
3f2db9b416
feat: simplify auto scroll behavior in ScrollServiceWidget (#437) 2023-09-04 13:36:39 +08:00
Lucas.Xu
0e55cce14f
chore: bump version 1.3.0 (#435) 2023-09-01 12:54:53 +08:00
Mohammad Zolfaghari
b429ae6b96
fix: better column resize performance (#434)
* fix: table padding when it gets scrolled

The handler was getting out of region when table width was wider
than editor size.

* fix: modify scroll view padding

* fix: better column resize performance
2023-09-01 10:48:13 +08:00
Mohammad Zolfaghari
9143c1fd48
fix: table padding and selection (#432)
* fix: table padding when it gets scrolled

The handler was getting out of region when table width was wider
than editor size.

* fix: modify scroll view padding
2023-09-01 10:40:45 +08:00
Lucas.Xu
f205f8040a
fix: table block bugs (#431)
* fix: resizing the table won't send transaction

* fix: lost selection after inserting table block

* fix: test

* refactor: don't pass editorState to TableNode

pass only transaction to methods directly.

* refactor: reduce extra transactions

* fix: mitigate Appflowy transaction adapter problem

With current transaction adapter in Appflowy which creates `BlockActionPB`
for `documentService` (backend). Its not possible to have multiple
`InsertOperation`s separately as a single transaction (multiple
`transaction.insertNode()`). The `BlockActionPB` creator (`toBlockAction`)
can't figure out the `prevId` (previous node of inserting node id), The
first insert operations shifts all next nodes path.
Because of this situation we decided to apply the insert operations one by
one.

* fix: table actions keep selection

* fix: on add col|row respect row|col bg color

* refactor: moving cell related keys to TableCellBlockKeys

* style: dart format

---------

Co-authored-by: Mohammad Zolfaghari <zidom72@gmail.com>
2023-08-31 10:35:23 +08:00
Lucas.Xu
a912c1c965 fix: refactor text alignment handling in block components 2023-08-29 21:33:30 +08:00
Lucas.Xu
e59b36173f
Revert "fix: remove flutter overlay (#358)" (#427)
* Revert "fix: remove flutter overlay (#358)"

This reverts commit 81fbb40fff.

* fix: hide toolbar when the selection area is invisible
2023-08-29 17:18:06 +08:00
Lucas.Xu
836e4cbd70
feat: support alignment for block component (#425) 2023-08-29 16:43:24 +08:00
Mathias Mogensen
81fbb40fff
fix: remove flutter overlay (#358)
* fix: remove flutter overlay

* fix: hide toolbar if selection is not visible

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2023-08-29 15:52:59 +08:00