diff --git a/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/editor_plugin.js b/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/editor_plugin.js
deleted file mode 100644
index bb41b19d573..00000000000
--- a/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/editor_plugin.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(){tinymce.create('tinymce.plugins.MoodleLinkPlugin',{init:function(ed,url){course_id=tinyMCE.activeEditor.getParam('moodleimage_course_id');ed.addCommand('mceMoodleLink',function(){ed.windowManager.open({file:url+'/link.php?id='+course_id,width:600+ed.getLang('example.delta_width',0),height:500+ed.getLang('example.delta_height',0),inline:1},{plugin_url:url,some_custom_arg:'custom arg'});});ed.addButton('moodlelink',{title:'Insert Link',cmd:'mceMoodleLink',image:url+'/img/link.gif'});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('moodlelink',n.nodeName=='IMG');});},createControl:function(n,cm){return null;},getInfo:function(){return{longname:'Moodle Link plugin',author:'Glen Davies',authorurl:'http://www.canterbury.ac.nz',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example',version:"1.0"};}});tinymce.PluginManager.add('moodlelink',tinymce.plugins.MoodleLinkPlugin);})();
\ No newline at end of file
diff --git a/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/editor_plugin_src.js b/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/editor_plugin_src.js
deleted file mode 100644
index 194d93aff1d..00000000000
--- a/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/editor_plugin_src.js
+++ /dev/null
@@ -1,78 +0,0 @@
-(function() {
- // Load plugin specific language pack
- //tinymce.PluginManager.requireLangPack('example');
-
- tinymce.create('tinymce.plugins.MoodleLinkPlugin', {
- /**
- * Initializes the plugin, this will be executed after the plugin has been created.
- * This call is done before the editor instance has finished it's initialization so use the onInit event
- * of the editor instance to intercept that event.
- *
- * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
- * @param {string} url Absolute URL to where the plugin is located.
- */
- init : function(ed, url) {
- // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
- course_id = tinyMCE.activeEditor.getParam('moodleimage_course_id');
- ed.addCommand('mceMoodleLink', function() {
- ed.windowManager.open({
-
- file : url + '/link.php?id=' + course_id,
- //file : '/moodle/lib/editor/htmlarea/popups/insert_image.php?id=' + course_id,
- width : 600 + ed.getLang('example.delta_width', 0),
- height : 500 + ed.getLang('example.delta_height', 0),
- inline : 1
- }, {
- plugin_url : url, // Plugin absolute URL
- some_custom_arg : 'custom arg' // Custom argument
- });
- });
-
- // Register example button
- ed.addButton('moodlelink', {
- title : 'Insert Link',
- cmd : 'mceMoodleLink',
- image : url + '/img/link.gif'
- });
-
-
- // Add a node change handler, selects the button in the UI when a image is selected
- ed.onNodeChange.add(function(ed, cm, n) {
- cm.setActive('moodlelink', n.nodeName == 'IMG');
- });
- },
-
- /**
- * Creates control instances based in the incomming name. This method is normally not
- * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
- * but you sometimes need to create more complex controls like listboxes, split buttons etc then this
- * method can be used to create those.
- *
- * @param {String} n Name of the control to create.
- * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
- * @return {tinymce.ui.Control} New control instance or null if no control was created.
- */
- createControl : function(n, cm) {
- return null;
- },
-
- /**
- * Returns information about the plugin as a name/value array.
- * The current keys are longname, author, authorurl, infourl and version.
- *
- * @return {Object} Name/value array containing information about the plugin.
- */
- getInfo : function() {
- return {
- longname : 'Moodle Link plugin',
- author : 'Glen Davies',
- authorurl : 'http://www.canterbury.ac.nz',
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example',
- version : "1.0"
- };
- }
- });
-
- // Register plugin
- tinymce.PluginManager.add('moodlelink', tinymce.plugins.MoodleLinkPlugin);
-})();
\ No newline at end of file
diff --git a/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/img/browse.gif b/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/img/browse.gif
deleted file mode 100644
index 30fda6fc2cf..00000000000
Binary files a/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/img/browse.gif and /dev/null differ
diff --git a/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/img/link.gif b/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/img/link.gif
deleted file mode 100644
index 76fd537dadd..00000000000
Binary files a/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/img/link.gif and /dev/null differ
diff --git a/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/js/moodlelink.js b/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/js/moodlelink.js
deleted file mode 100644
index aa8befb62bd..00000000000
--- a/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/js/moodlelink.js
+++ /dev/null
@@ -1,71 +0,0 @@
-tinyMCEPopup.requireLangPack();
-
-var MoodleLinkDialog = {
- init : function(ed) {
- var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, dom = ed.dom, n = ed.selection.getNode();
- tinyMCEPopup.resizeToInnerSize();
-
- },
-
- insert : function(file, title) {
- var ed = tinyMCEPopup.editor, t = this, f = document.forms[0];
-
- if (f.f_url.value === '') {
- ed.dom.remove(ed.selection.getNode());
- ed.execCommand('mceRepaint');
- tinyMCEPopup.close();
- return;
- }
-
- if (tinyMCEPopup.getParam("accessibility_warnings", 1)) {
- if (!f.f_alt.value) {
- tinyMCEPopup.editor.windowManager.confirm(tinyMCEPopup.getLang('moodleimage_dlg.missing_alt'), function(s) {
- if (s)
- t.insertAndClose();
- });
-
- return;
- }
- }
-
- t.insertAndClose();
- },
-
- insertAndClose : function() {
- var ed = tinyMCEPopup.editor, f = document.forms[0], nl = f.elements, v, args = {}, el;
-
- // Fixes crash in Safari
- if (tinymce.isWebKit)
- ed.getWin().focus();
-
- tinymce.extend(args, {
- src : nl.f_url.value,
- width : nl.f_width.value,
- height : nl.f_height.value,
- alt : nl.f_alt.value,
- vspace : nl.f_vert.value,
- hspace : nl.f_horiz.value,
- border : nl.f_border.value,
- align : getSelectValue(f, 'f_align')
- });
-
- el = ed.selection.getNode();
-
- if (el && el.nodeName == 'IMG') {
- ed.dom.setAttribs(el, args);
- } else {
- ed.execCommand('mceInsertContent', false, '
');
- ed.dom.setAttribs('__mce_tmp', args);
- ed.dom.setAttrib('__mce_tmp', 'id', '');
- }
-
- tinyMCEPopup.close();
- }
-
-
-
-
-};
-
-
-tinyMCEPopup.onInit.add(MoodleLinkDialog.init, MoodleLinkDialog);
diff --git a/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/langs/en_dlg.js b/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/langs/en_dlg.js
deleted file mode 100644
index 87937b47d2b..00000000000
--- a/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/langs/en_dlg.js
+++ /dev/null
@@ -1,3 +0,0 @@
-tinyMCE.addI18n('en.moodlelink_dlg',{
-title:"Choose file to link"
-});
\ No newline at end of file
diff --git a/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/link.php b/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/link.php
deleted file mode 100644
index e36cac5c7c4..00000000000
--- a/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/link.php
+++ /dev/null
@@ -1,174 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | |
-
-
-
-
-
-
-