src/pyams_content/skin/resources/js/tinymce/onflinks/plugin.js
branchdev-dc
changeset 1086 3d259e1718ef
parent 1079 a5e56749ca3d
parent 1084 6b6a884fa28a
child 1087 978a2b9123b9
--- a/src/pyams_content/skin/resources/js/tinymce/onflinks/plugin.js	Fri Oct 12 14:33:03 2018 +0200
+++ /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>');
-				}
-			});
-		}
-	})
-});