Commit 1e55642
Add editor enhancements with undo/redo, media menu, and checklist support (#12)
* feat: add undo/redo buttons and media menu to the editor; enhance sample document with checklist and embed examples
* feat: enhance SlashMenu with custom items, item order, and hiding options
* feat: add customization options for BubbleMenu, SlashMenu, and ColorPicker components
* feat: add new plugins for keyboard shortcuts, checklist, media menu, and history management
* feat: add support for check list items and image blocks in blockToNode conversion
* feat: add support for check list items in nodeToBlock conversion
* feat: add undo and redo functionality to OpenBlockEditor
* feat: enhance bubble menu visibility logic for media nodes
* feat: implement checklist plugin for handling checkbox interactions and keyboard behavior
* feat: add keyboard shortcuts, checklist, and media menu plugins to createPlugins
* feat: enhance drag/drop plugin to support positioning for blocks nested in lists
* feat: re-export history functions and add media menu plugin to core plugins
* feat: add keyboard shortcuts plugin for customizable formatting and block operations
* feat: add media menu plugin for handling image and embed node selections
* feat: implement MediaMenu component for floating media editing toolbar
* feat: update exports in index.ts to include additional properties for menus and color picker
* feat: enhance ColorPicker component with customizable color palettes and labels
* feat: enhance BubbleMenu component with support for custom items, reordering, and hiding default items
* feat: add default slash menu items for image, checklist, and embed options
* feat: add hard break, image, checklist, checklist item, and embed nodes to default schema
* feat: update index.ts to re-export additional types for image and embed nodes
* feat: add check list and check list item node specifications for task tracking
* feat: add embed node specification for external content integration
* feat: add hard break node specification for line breaks within text blocks
* feat: add image node specification for handling images in blocks
* feat: add hard break, image, embed, and check list node specifications to index
* feat: add media menu, image, embed, and checklist styles to editor
* feat: add checklist, image, and embed block styles to editor
* feat: add MediaMenu and ColorPicker components, and their associated types to index
* feat: enhance README with new components and usage examples for SlashMenu, BubbleMenu, and ColorPicker
---------
Co-authored-by: Jeremy Mouton <jeremy.mouton@spendesk.com>1 parent 46a5abb commit 1e55642
31 files changed
Lines changed: 4057 additions & 226 deletions
File tree
- docs
- examples/basic/src
- packages
- core/src
- blocks
- editor
- plugins
- schema
- nodes
- styles
- react
- src
- components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
401 | 511 | | |
402 | 512 | | |
403 | 513 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
| |||
49 | 56 | | |
50 | 57 | | |
51 | 58 | | |
| 59 | + | |
52 | 60 | | |
53 | 61 | | |
54 | 62 | | |
| |||
0 commit comments