--- a/src/pyams_content/skin/resources/js/tinymce/onflinks/plugin.js Thu Nov 08 08:46:58 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-tinymce.PluginManager.add('internal_links', function(editor, url) {
-
- editor.addButton('internal_links', {
- icon: 'cloud-check',
- tooltip: "Insert internal link",
- image: '/--static--/pyams_content/img/external.png',
- onclick: function() {
- editor.windowManager.open({
- title: "Insert internal link",
- body: [
- {type: 'textbox', name: 'title', label: 'Link title', value: editor.selection.getContent()},
- {type: 'textbox', name: 'oid', label:'Internal number'}
- ],
- onsubmit: function(e) {
- editor.insertContent('<a href="oid://' + e.data.oid + '">' + e.data.title + '</a>');
- }
- });
- }
- })
-});