]> BookStack Code Mirror - bookstack/blob - resources/js/wysiwyg/todo.md
e39a4c655fee66335dfbe6c361f6f4b65c1cf920
[bookstack] / resources / js / wysiwyg / todo.md
1 # Lexical based editor todo
2
3 ## In progress
4
5 - Add Type: Video/media/embed
6     - TinyMce media embed supported:
7       - iframe
8       - embed
9       - object
10       - video - Can take sources
11       - audio  - Can take sources
12     - Pretty much all attributes look like they were supported.
13     - Core old logic seen here: https://github.com/tinymce/tinymce/blob/main/modules/tinymce/src/plugins/media/main/ts/core/DataToHtml.ts
14     - Copy/store attributes on node based on allow list?
15       - width, height, src, controls, etc... Take valid values from MDN
16
17 ## Main Todo
18
19 - Alignments: Use existing classes for blocks
20 - Alignments: Handle inline block content (image, video)
21 - Table features
22 - Image paste upload
23 - Keyboard shortcuts support
24 - Global/shared editor events support
25 - Draft/change management (connect with page editor component)
26 - Add ID support to all block types
27 - Template drag & drop / insert
28 - Video attachment drop / insert
29 - Task list render/import from existing format
30 - Link popup menu for cross-content reference
31 - Link heading-based ID reference menu
32 - Image gallery integration for insert
33 - Image gallery integration for form
34 - Drawing gallery integration
35
36 ## Bugs
37
38 - Image resizing currently bugged, maybe change to ghost resizer in decorator instead of updating core node.
39 - Removing link around image via button deletes image, not just link 
40 - `SELECTION_CHANGE_COMMAND` not fired when clicking out of a table cell. Prevents toolbar hiding on table unselect.