]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/plugins-imagemanager.js
Ran eslint fix on existing codebase
[bookstack] / resources / js / wysiwyg / plugins-imagemanager.js
index 6969a50e22264bb77e96c626dc93d04329edeb3e..e7dd126cb0f9571c57c6d8c173e5d92dd6fe4033 100644 (file)
@@ -9,24 +9,23 @@ function register(editor, url) {
         icon: 'image',
         tooltip: 'Insert image',
         onAction() {
-            /** @type {ImageManager} **/
+            /** @type {ImageManager} * */
             const imageManager = window.$components.first('image-manager');
-            imageManager.show(function (image) {
+            imageManager.show(image => {
                 const imageUrl = image.thumbs.display || image.url;
                 let html = `<a href="${image.url}" target="_blank">`;
                 html += `<img src="${imageUrl}" alt="${image.name}">`;
                 html += '</a>';
                 editor.execCommand('mceInsertContent', false, html);
             }, 'gallery');
-        }
+        },
     });
 }
 
-
 /**
  * @param {WysiwygConfigOptions} options
  * @return {register}
  */
 export function getPlugin(options) {
     return register;
-}
\ No newline at end of file
+}