You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Shuffle is a ProseMirror plugin that supports smooth, grid-based reordering, auto-grouping, repositioning, and resizing. Drag this paragraph to see it in action.",
90
+
),
91
+
),
92
+
schema.nodes.paragraph.create(
93
+
null,
94
+
schema.text(
95
+
"ProseMirror has built-in drag-and-drop behavior, but it's limited in functionality and relies on the browser’s native “ghosted” drag thumbnails. Shuffle focuses on clarity: users should be able to see how their actions are affecting their document in real time, and know exactly what the document will look like when they drop.",
"Use Shuffle to drag ProseMirror nodes around the document, automatically swapping positions with other node views, sinking and lifting to arbitrary depths as needed, and giving constant feedback to the user about how their document is changing.",
"Shuffle divides the editor width into 12 equal columns. Blocks snap to column boundaries when resized or repositioned. Select any block and drag its handles to resize it.",
111
+
),
112
+
),
113
+
]),
114
+
schema.nodes.heading.create({level: 3},schema.text("Rows and containers")),
115
+
schema.nodes.paragraph.create(
116
+
null,
117
+
schema.text(
118
+
"Rows are horizontal groupings of block nodes. Drag a block next to another and Shuffle wraps them in a row automatically. Drag the last block out and the row disappears.",
119
+
),
120
+
),
121
+
schema.nodes.paragraph.create(
122
+
null,
123
+
schema.text(
124
+
"Containers are an optional vertical grouping of block nodes that behave similarly to rows. Blocks inside of it can be aligned. A container persists after you remove the blocks inside of it.",
"The card deck below uses containment - its cards can be dragged and reordered within the deck, but they can’t be moved outside of it. The schema defines what is allowed and Shuffle enforces it automatically.",
0 commit comments