mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Lexical: Fixed tiny image resizer on image insert
Added specific focus on image insert, and updated resize handler to watch for load events and toggle a resize once loaded.
This commit is contained in:
@@ -92,6 +92,7 @@ export const image: EditorButtonDefinition = {
|
||||
context.editor.update(() => {
|
||||
const link = $createLinkedImageNodeFromImageData(image);
|
||||
$insertNodes([link]);
|
||||
link.select();
|
||||
});
|
||||
})
|
||||
});
|
||||
|
Reference in New Issue
Block a user