aboutsummaryrefslogtreecommitdiff
path: root/data/stuff/tinymce-4.3.7/plugins/anchor
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-04-03 02:27:10 -0400
committerPaul Duncan <pabs@pablotron.org>2016-04-03 02:27:10 -0400
commitfda56e40b460ab06b6abee98ae1bc7d5f5847c9f (patch)
tree29c3ddbf0ae3d47370019fb969920b07f27fc015 /data/stuff/tinymce-4.3.7/plugins/anchor
parentb53fb6a4edc0e7b8a6cbfa1f6ca9db4e1895add6 (diff)
downloadold-guff-fda56e40b460ab06b6abee98ae1bc7d5f5847c9f.tar.bz2
old-guff-fda56e40b460ab06b6abee98ae1bc7d5f5847c9f.zip
add tinymce
Diffstat (limited to 'data/stuff/tinymce-4.3.7/plugins/anchor')
-rw-r--r--data/stuff/tinymce-4.3.7/plugins/anchor/plugin.min.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/stuff/tinymce-4.3.7/plugins/anchor/plugin.min.js b/data/stuff/tinymce-4.3.7/plugins/anchor/plugin.min.js
new file mode 100644
index 0000000..0dd4774
--- /dev/null
+++ b/data/stuff/tinymce-4.3.7/plugins/anchor/plugin.min.js
@@ -0,0 +1 @@
+tinymce.PluginManager.add("anchor",function(a){function b(){var b=a.selection.getNode(),c="",d="A"==b.tagName&&""===a.dom.getAttrib(b,"href");d&&(c=b.name||b.id||""),a.windowManager.open({title:"Anchor",body:{type:"textbox",name:"name",size:40,label:"Name",value:c},onsubmit:function(c){var e=c.data.name;d?b.id=e:(a.selection.collapse(!0),a.execCommand("mceInsertContent",!1,a.dom.createHTML("a",{id:e})))}})}a.addCommand("mceAnchor",b),a.addButton("anchor",{icon:"anchor",tooltip:"Anchor",onclick:b,stateSelector:"a:not([href])"}),a.addMenuItem("anchor",{icon:"anchor",text:"Anchor",context:"insert",onclick:b})}); \ No newline at end of file