@meta-1/editor 1.0.4 → 1.0.6
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 +1 -1
- package/src/components/tiptap-node/blockquote-node/blockquote-node.css +1 -1
- package/src/components/tiptap-node/code-block-node/code-block-node.css +1 -1
- package/src/components/tiptap-node/heading-node/heading-node.css +1 -1
- package/src/components/tiptap-node/horizontal-rule-node/horizontal-rule-node.css +1 -1
- package/src/components/tiptap-node/image-node/image-node-view.css +5 -1
- package/src/components/tiptap-node/image-node/image-node.css +5 -1
- package/src/components/tiptap-node/image-upload-node/image-upload-node.css +1 -1
- package/src/components/tiptap-node/list-node/list-node.css +1 -1
- package/src/components/tiptap-node/paragraph-node/paragraph-node.css +1 -1
- package/src/components/tiptap-node/table-node/styles/prosemirror-table.css +1 -1
- package/src/components/tiptap-node/table-node/styles/table-node.css +1 -1
- package/src/components/tiptap-node/table-node/ui/table-cell-handle-menu/table-cell-handle-menu.css +1 -1
- package/src/components/tiptap-node/table-node/ui/table-extend-row-column-button/table-extend-row-column-button.css +1 -1
- package/src/components/tiptap-node/table-node/ui/table-handle-menu/table-handle-menu.css +1 -1
- package/src/components/tiptap-node/table-node/ui/table-trigger-button/table-grid-selector.css +1 -1
- package/src/components/tiptap-ui/color-highlight-button/color-highlight-button.css +1 -1
- package/src/components/tiptap-ui/color-text-button/color-text-button.css +1 -1
- package/src/components/tiptap-ui/color-text-popover/color-text-popover.css +1 -1
- package/src/components/tiptap-ui/drag-context-menu/drag-context-menu.css +1 -1
- package/src/components/tiptap-ui/drag-context-menu/drag-context-menu.tsx +4 -0
- package/src/components/tiptap-ui/emoji-menu/emoji-menu.css +1 -1
- package/src/components/tiptap-ui/slash-dropdown-menu/slash-dropdown-menu.css +1 -1
- package/src/components/tiptap-ui-primitive/avatar/avatar.css +1 -1
- package/src/components/tiptap-ui-primitive/badge/badge-colors.css +1 -1
- package/src/components/tiptap-ui-primitive/badge/badge-group.css +1 -1
- package/src/components/tiptap-ui-primitive/badge/badge.css +1 -1
- package/src/components/tiptap-ui-primitive/button/button-colors.css +1 -1
- package/src/components/tiptap-ui-primitive/button/button-group.css +1 -1
- package/src/components/tiptap-ui-primitive/button/button.css +1 -1
- package/src/components/tiptap-ui-primitive/card/card.css +1 -1
- package/src/components/tiptap-ui-primitive/combobox/combobox.css +1 -1
- package/src/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.css +1 -1
- package/src/components/tiptap-ui-primitive/input/input.css +1 -1
- package/src/components/tiptap-ui-primitive/label/label.css +1 -1
- package/src/components/tiptap-ui-primitive/menu/menu.css +1 -1
- package/src/components/tiptap-ui-primitive/popover/popover.css +1 -1
- package/src/components/tiptap-ui-primitive/separator/separator.css +1 -1
- package/src/components/tiptap-ui-primitive/sidebar/sidebar.css +1 -1
- package/src/components/tiptap-ui-primitive/toolbar/toolbar.css +1 -1
- package/src/components/tiptap-ui-primitive/tooltip/tooltip.css +1 -1
- package/src/content/style.css +1 -1
- package/src/styles/variables.css +1 -0
package/package.json
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
@
|
|
1
|
+
@reference "@meta-1/design/theme.css";
|
|
2
|
+
|
|
3
|
+
.tiptap.ProseMirror[data-dragging="true"] .ProseMirror-selectednode .tiptap-image .tiptap-image-container {
|
|
4
|
+
outline: none !important;
|
|
5
|
+
}
|
|
2
6
|
|
|
3
7
|
.tiptap.ProseMirror .ProseMirror-selectednode .tiptap-image .tiptap-image-container {
|
|
4
8
|
@apply rounded-sm;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@reference "@meta-1/design/theme.css";
|
|
2
2
|
|
|
3
3
|
.tiptap.ProseMirror img {
|
|
4
4
|
@apply max-w-full h-auto block;
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
@apply outline-indigo-500;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.tiptap.ProseMirror[data-dragging="true"] img:not([data-type="emoji"] img).ProseMirror-selectednode {
|
|
17
|
+
outline: none !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
16
20
|
/* Thread image handling */
|
|
17
21
|
.tiptap.ProseMirror .tiptap-thread:has(> img) {
|
|
18
22
|
@apply my-8;
|
|
@@ -316,11 +316,15 @@ export const DragContextMenu: React.FC<DragContextMenuProps> = ({
|
|
|
316
316
|
const onElementDragStart = useCallback(() => {
|
|
317
317
|
if (!editor) return;
|
|
318
318
|
editor.commands.setIsDragging(true);
|
|
319
|
+
// Add data attribute to hide selected outline in drag ghost
|
|
320
|
+
editor.view.dom.setAttribute("data-dragging", "true");
|
|
319
321
|
}, [editor]);
|
|
320
322
|
|
|
321
323
|
const onElementDragEnd = useCallback(() => {
|
|
322
324
|
if (!editor) return;
|
|
323
325
|
editor.commands.setIsDragging(false);
|
|
326
|
+
// Remove data attribute
|
|
327
|
+
editor.view.dom.removeAttribute("data-dragging");
|
|
324
328
|
|
|
325
329
|
setTimeout(() => {
|
|
326
330
|
editor.view.dom.blur();
|
package/src/content/style.css
CHANGED
package/src/styles/variables.css
CHANGED