src/pyams_skin/resources/js/ext/tinymce/dev/plugins/anchor/plugin.js
changeset 566 a1707c607eec
parent 565 318533413200
child 567 bca1726b1d85
--- a/src/pyams_skin/resources/js/ext/tinymce/dev/plugins/anchor/plugin.js	Sun Jul 19 02:02:20 2020 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-/**
- * plugin.js
- *
- * Copyright, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://www.tinymce.com/license
- * Contributing: http://www.tinymce.com/contributing
- */
-
-/*global tinymce:true */
-
-tinymce.PluginManager.add('anchor', function(editor) {
-	function showDialog() {
-		var selectedNode = editor.selection.getNode(), name = '';
-
-		if (selectedNode.tagName == 'A') {
-			name = selectedNode.name || selectedNode.id || '';
-		}
-
-		editor.windowManager.open({
-			title: 'Anchor',
-			body: {type: 'textbox', name: 'name', size: 40, label: 'Name', value: name},
-			onsubmit: function(e) {
-				editor.execCommand('mceInsertContent', false, editor.dom.createHTML('a', {
-					id: e.data.name
-				}));
-			}
-		});
-	}
-
-	editor.addButton('anchor', {
-		icon: 'anchor',
-		tooltip: 'Anchor',
-		onclick: showDialog,
-		stateSelector: 'a:not([href])'
-	});
-
-	editor.addMenuItem('anchor', {
-		icon: 'anchor',
-		text: 'Anchor',
-		context: 'insert',
-		onclick: showDialog
-	});
-});
\ No newline at end of file