]> BookStack Code Mirror - bookstack/commit
Lexical: Revamped image node resize method
authorDan Brown <redacted>
Sat, 7 Sep 2024 17:39:58 +0000 (18:39 +0100)
committerDan Brown <redacted>
Sat, 7 Sep 2024 17:39:58 +0000 (18:39 +0100)
commite5b6d28bcaf78a08fab97e0ee0496650b2466569
tree4af3a9eda9393162b84b406878b7e3189d1d6f63
parent1c9afcb84ef702412d6a004df1a3d861a8f57f1b
Lexical: Revamped image node resize method

Changed from using a decorator to using a helper that watches for image
selections to then display a resize helper.
Also changes resizer to use a ghost and apply changes on end instead of
continuosly during resize.
resources/js/wysiwyg/index.ts
resources/js/wysiwyg/nodes/image.ts
resources/js/wysiwyg/todo.md
resources/js/wysiwyg/ui/decorators/image.ts [deleted file]
resources/js/wysiwyg/ui/defaults/buttons/alignments.ts
resources/js/wysiwyg/ui/framework/helpers/image-resizer.ts [new file with mode: 0644]
resources/js/wysiwyg/ui/framework/manager.ts
resources/js/wysiwyg/ui/index.ts
resources/js/wysiwyg/utils/selection.ts
resources/sass/_editor.scss
Morty Proxy This is a proxified and sanitized view of the page, visit original site.