diff options
author | Max <max@nextcloud.com> | 2022-09-08 10:11:37 +0300 |
---|---|---|
committer | Max <max@nextcloud.com> | 2022-09-08 10:13:27 +0300 |
commit | 7bd2e54e2b11803e7c2e46a1b82e1de8420fcaab (patch) | |
tree | 14a01333b837827bad47ab80dc6cdd2a6421d6cc /js/text-text.js.map | |
parent | 5db015121e3e1b1ff227e3c34b31ab2a723b5cf7 (diff) |
fix: update link menububble on editor updates
Ensure the menububble always shows the correct entries.
The menububble shows different buttons if the selected text is a link.
However its content often became out of sync with the editor:
* when new text was selected the bubble was still cached
* when the selection stayed active but was expanded / shrinked
the menu bubble also stayed the same
* when someone else editing the same page changed the current selection into a link
Recompute the menububbles `active` data on every editor change.
The code used for this is mostly taken from the menu bars mechanism
for the same purpose.
See updateState in src/components/Menu/BaseActionEntry.js.
Signed-off-by: Max <max@nextcloud.com>
Diffstat (limited to 'js/text-text.js.map')
0 files changed, 0 insertions, 0 deletions