]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/ui/defaults/buttons/objects.ts
Lexical: Fixed tiny image resizer on image insert
[bookstack] / resources / js / wysiwyg / ui / defaults / buttons / objects.ts
index 63df4fea8cde4c60e33cc0fc7caeb4f2262c7d89..41f6061b64878075712671024a7ddd6ac532eb55 100644 (file)
@@ -92,6 +92,7 @@ export const image: EditorButtonDefinition = {
                 context.editor.update(() => {
                     const link = $createLinkedImageNodeFromImageData(image);
                     $insertNodes([link]);
+                    link.select();
                 });
             })
         });
@@ -165,7 +166,7 @@ export const diagramManager: EditorButtonDefinition = {
 };
 
 export const media: EditorButtonDefinition = {
-    label: 'Insert/edit Media',
+    label: 'Insert/edit media',
     icon: mediaIcon,
     action(context: EditorUiContext) {
         context.editor.getEditorState().read(() => {