@platejs/cli
Published @platejs/cli@54.0.0-beta.5.
@platejs/test
Patch Changes
8bee987by @zbeyens –- Fix
clipboard.pasteTextandclipboard.pasteHtmlin@platejs/test/playwrightto pass a paste that a later commit follows, such as a paste rule's, and to fail a paste that landed in another editor root. Use@platejs/testwith theplatejsrelease of the same version.
- Fix
platejs
Patch Changes
-
- Move a comment thread with its text when a drag moves all of that text, and back again on undo. A drag of part of the text leaves the thread on the part that stays. Undoing a drag and the thread's creation, then redoing both, puts the thread back on its text.
-
- Add
fillsField(field, value)toplatejs/fieldto check whether a value fills a field.required, thefilledandblankconditions and the refusal of an answer on a skipped field all use it. A checkbox fills only when ticked. A text or signature answer needs a character other than whitespace. Any other field needs a value of its kind.
- Add
-
- Fix the ink layer holding the outline of each removed pen mark in memory while undo history can still restore that mark
-
- Fix Markdown copied from VS Code pasting as a Markdown code block; it now pastes as headings, lists and marks
- Paste code copied from VS Code as a code block at the caret, replacing an empty block, instead of after the current block
- Paste text copied from a plain-text file in VS Code as plain text instead of a code block
plitejs
Patch Changes
dee395dby @zbeyens –- Keep a range anchor made with
deletion: 'nearest'on its text when a drag moves all of that text within one root, instead of leaving it collapsed where the text was. Undo and redo move it back and forth. A drag of part of the range leaves the anchor on the part that stays, unless the drop rebuilds the block that holds that part. A Suggesting move keeps the anchor on the struck original until the move is decided. A copy, a drag into another editor or root and an editor bound to Yjs orplitejs/syncmap the range as before.
- Keep a range anchor made with
Full changelog: v54.0.0-beta.4...v54.0.0-beta.5