window.nextgenEditor.addHook('hookInit', () => { window.nextgenEditor.addButtonGroup('learn2-with-git-sync', { label: 'Learn2 with Git Sync', }); }); window.nextgenEditor.addShortcode('pdf', { type: 'block', plugin: 'learn2-with-git-sync', title: 'PDF', button: { label: 'PDF', 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 ? `
` : '