Sha256: 5503cbfe78f0ed148730bde11142fb0b43350637fdcba1241bdb114038cbae83
Contents?: true
Size: 1.09 KB
Versions: 47
Compression:
Stored size: 1.09 KB
Contents
(function() { tinymce.PluginManager.requireLangPack('alchemy_link'); tinymce.create('tinymce.plugins.alchemy_link', { init: function(ed, url) { ed.addButton('alchemy_link', { title: 'alchemy_link.link_button_title', label: '', 'class': 'alchemy_link', onclick: function() { ed.focus(); Alchemy.LinkOverlay.open({ node: ed.selection.getNode(), bookmark: ed.selection.getBookmark(), selection: ed.selection, editor: ed }, (ed.settings.alchemy_link_overlay_width || 408)); } }); ed.onNodeChange.add(function(ed, cm, n, co) { // Activates the link button when the caret is placed in a anchor element cm.setActive('alchemy_link', n.nodeName == 'A'); }); }, createControl: function(n, cm) { return null; }, getInfo: function() { return { longname: 'Link overlay plugin for Alchemy', author: 'magic labs*', authorurl: 'http://magiclabs.de', infourl: 'http://alchemy-app.com', version: "0.3.2" }; } }); tinymce.PluginManager.add('alchemy_link', tinymce.plugins.alchemy_link); })();
Version data entries
47 entries across 41 versions & 1 rubygems