- md5
- 8b3b8c906e240b1a3ed1aedb45dbc697
- sha1
- 86a78f28af3ad3def487134e836ae749125043c8
- sha256
- 948092e9ecfac38fce300941d3f5df9497959aa18ef9763447a2a5267c85935d
tinymce.PluginManager.add("wplink",function(e){e.addCommand("WP_Link",function(){window.wpLink&&window.wpLink.open(e.id)}),e.addShortcut("Alt+Shift+A","","WP_Link"),e.addShortcut("Meta+K","","WP_Link"),e.addButton("link",{icon:"link",tooltip:"Insert/edit link",cmd:"WP_Link",stateSelector:"a[href]"}),e.addButton("unlink",{icon:"unlink",tooltip:"Remove link",cmd:"unlink"}),e.addMenuItem("link",{icon:"link",text:"Insert/edit link",cmd:"WP_Link",stateSelector:"a[href]",context:"insert",prependToContext:!0}),e.on("pastepreprocess",function(n){var t=n.content;e.selection.isCollapsed()||(t=t.replace(/<[^>]+>/g,""),t=tinymce.trim(t),/^(?:https?:)?\/\/\S+$/i.test(t)&&(e.execCommand("mceInsertLink",!1,{href:e.dom.decode(t)}),n.preventDefault()))})});
The same content is in 10 releases, WordPress 4.2.30 to 4.2.39. See them all, or every version of this file.