Sha256: f03926b616db0df04e2160c8d90151213e8110e2cd59a64c5930ad7933c77865
Contents?: true
Size: 599 Bytes
Versions: 13
Compression:
Stored size: 599 Bytes
Contents
# This plugin just opens the Snippet dialog CKEDITOR.plugins.add 'effective_assets', icons: 'effectiveassets', hidpi: true, init: (editor) -> editor.ui.addButton 'EffectiveAssets', {label: 'Insert File', command: 'openEffectiveAssetsSnippetDialog'} editor.addCommand('openEffectiveAssetsSnippetDialog', OpenEffectiveAssetsSnippetDialog) OpenEffectiveAssetsSnippetDialog = { exec: (editor) -> if (command = editor.getCommand('effective_asset')) command.exec(editor) else alert('This function is currently disabled. Please install EffectiveAssets gem.') }
Version data entries
13 entries across 13 versions & 1 rubygems