2 * @param {Editor} editor
5 function register(editor, url) {
7 // Custom Image picker button
8 editor.ui.registry.addButton('imagemanager-insert', {
11 tooltip: 'Insert image',
13 window.ImageManager.show(function (image) {
14 const imageUrl = image.thumbs.display || image.url;
15 let html = `<a href="${image.url}" target="_blank">`;
16 html += `<img src="${imageUrl}" alt="${image.name}">`;
18 editor.execCommand('mceInsertContent', false, html);
26 * @param {WysiwygConfigOptions} options
29 export function getPlugin(options) {