Philipp Kühn
8b545e4ae1
refactoring
2021-09-07 20:55:40 +02:00
Enrique
ca3763d3c2
fix: don’t initialize tippy on requestAnimationFrame to avoid race conditions ( #1820 )
...
Instead of initializting tippy when
the bubble menu and floating menu plugins are initialized,
defer the initialization of tippy to the moment when
the the editor should display the floating or bubble menu
Co-authored-by: Enrique Alcantara <ealcantara@gitlab.com>
2021-09-07 20:46:45 +02:00
Philipp Kühn
70a328bd3d
fix: make shouldShow and pluginKey option for menus, fix #1779
2021-08-23 18:44:40 +02:00
Philipp Kühn
89d26f7cba
fix: rename key to pluginKey for menus
2021-08-13 12:33:06 +02:00
Philipp Kühn
956566eaad
fix: fix some react focus issues ( #1724 ), fix #1716 , fix #1608 , fix #1520
...
* remove async createNodeViews
* focus asynchronously to fix weird bugs in react
2021-08-12 18:03:45 +02:00
Philipp Kühn
9ba61c1582
feat: add key option and shouldShow option to menus ( fix #1480 , fix #1043 , fix #1268 , fix #1503 )
...
* add key option to bubble menu
* ignore react for now
* add shouldShow option to bubble menu extension
* improve types
* remove BubbleMenuPluginKey
* add key and shouldShow option to floating menu extension
* fix: don’t show floating menu within code block
* docs: add new menu options
2021-08-11 14:37:58 +02:00
Philipp Kühn
f12b1273f2
fix: fix a bug where bubble menu does not appear when selection starts from empty paragraph node, fix #1474
2021-06-15 19:06:26 +02:00
Philipp Kühn
a3a7650784
fix: show bubble menu for atom nodes even if there is no text content, fix #1446
2021-06-14 18:58:10 +02:00
Philipp Kühn
6034eb9b30
fix: hide bubble menu on drag, fix #1443
2021-06-14 18:28:27 +02:00
Philipp Kühn
c0e68d5a25
fix: do not check for node selection within posToDOMRect
2021-05-24 20:40:24 +02:00
Philipp Kühn
6472d2c271
fix: add CellSelection support for bubble menu
2021-05-06 09:54:35 +02:00
Philipp Kühn
8ed220a12d
fix: fix a bug for empty node selection where the bubble menu should not be visible, fix #1023
2021-04-21 23:38:13 +02:00
Philipp Kühn
89b72b8608
refactoring: rename posToClientRect to posToDOMRect
2021-04-16 14:44:10 +02:00
Philipp Kühn
9a56f666a1
feat: add tippyOptions prop
2021-04-16 12:42:56 +02:00
Philipp Kühn
398fc7f210
fix: fix tippy for react
2021-04-16 11:34:37 +02:00
Philipp Kühn
76b1e58657
refactor: code style
2021-04-16 11:11:41 +02:00
Philipp Kühn
d7282f168b
feat: remove keepInBounds
2021-04-16 10:46:50 +02:00
Philipp Kühn
c28d8f7fad
refactor: remove coordsAtPos from bubble menu extension
2021-04-16 09:57:23 +02:00
Philipp Kühn
8dab6144a6
feat: add coordsAtPos and posToClientRect helper methods
2021-04-16 09:56:52 +02:00
Philipp Kühn
054edc32a4
use tippy for bubble menu
2021-04-09 22:42:09 +02:00
Philipp Kühn
e25e1ddd27
update menus on resize
2021-04-01 16:22:02 +02:00
Philipp Kühn
0e11fa6cff
remove transform
2021-04-01 12:12:23 +02:00
Philipp Kühn
56a037b8e8
dont use document in BubbleMenu extension
2021-03-31 16:51:48 +02:00
Philipp Kühn
e0895926bd
refactoring
2021-03-31 11:13:09 +02:00
Philipp Kühn
a90f08fb1c
fix a bug in bubble menu
2021-03-31 10:58:05 +02:00
Philipp Kühn
df58611810
rename type
2021-03-31 10:22:54 +02:00
Philipp Kühn
0bdac219f5
remove unused file
2021-03-31 10:00:01 +02:00
Philipp Kühn
daa8e72477
add doc page for bubble menu
2021-03-30 14:07:18 +02:00
Philipp Kühn
35ca89311f
refactoring
2021-03-30 12:56:23 +02:00
Philipp Kühn
86fa24231c
improve bubble menu
2021-03-30 12:45:56 +02:00
Philipp Kühn
0aa9408124
fix a bug
2021-03-30 12:20:19 +02:00
Philipp Kühn
d25567ff74
refactoring
2021-03-30 12:13:55 +02:00
Philipp Kühn
71a4e5e646
add bubble menu from v1
2021-03-30 11:36:51 +02:00