window.nextgenEditor.addHook('hookInit', () => { window.nextgenEditor.addButtonGroup('learn2-with-git-sync', { label: 'Learn2 with Git Sync', }); }); window.nextgenEditor.addShortcode('googleslides', { type: 'block', plugin: 'learn2-with-git-sync', title: 'Google Slides', button: { label: 'Google Slides', group: 'learn2-with-git-sync', }, attributes: { url: { type: String, innerHTML: true, title: 'URL', widget: 'input-text', default: '', }, }, titlebar({ attributes }) { return `URL: ${attributes.url || 'No URL provided'}`; }, content({ attributes }) { return attributes.url ? `
` : '