@h-k-dev/angular-email-editor 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h-k-dev/angular-email-editor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "An email editor for Angular on ProseMirror — a visual composer and an HTML source editor over one schema that is the vocabulary of email HTML.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "h-k-dev",
|
|
@@ -2595,9 +2595,20 @@ interface BubbleMenuState {
|
|
|
2595
2595
|
interface BubbleMenuOptions {
|
|
2596
2596
|
/** How long a selection stands before the menu *opens* over it (150ms):
|
|
2597
2597
|
a drag's or a Shift-Arrow's intermediate ranges never pop a menu. A
|
|
2598
|
-
menu that is already open
|
|
2599
|
-
plugin view. */
|
|
2598
|
+
menu that is already open answers a selection change at once — its
|
|
2599
|
+
kind, and with `anchor: 'selection'` its box — see the plugin view. */
|
|
2600
2600
|
updateDelay?: number;
|
|
2601
|
+
/** Where the open menu stands as the selection changes under it:
|
|
2602
|
+
- `'first'` (the default): where it opened — over the selection as it
|
|
2603
|
+
stood then, an image's or a button's box when that was it. Shift-
|
|
2604
|
+
Arrow, a wider drag of the handles, a mark applied: the menu stays
|
|
2605
|
+
put, so the tools under the pointer never slide away from it. Only
|
|
2606
|
+
a scroll that `scroll: 'follow'` answers measures it again — the
|
|
2607
|
+
same range, where it now is.
|
|
2608
|
+
- `'selection'`: over the selection of the moment, reported afresh
|
|
2609
|
+
with every change.
|
|
2610
|
+
The menu's `kind` follows the selection either way. */
|
|
2611
|
+
anchor?: 'first' | 'selection';
|
|
2601
2612
|
onStateChange: (state: BubbleMenuState) => void;
|
|
2602
2613
|
shouldShow?: (state: EditorState) => boolean;
|
|
2603
2614
|
/** What the menu does when the editor scrolls under it — closes, by
|