- md5
- 753184d3fd57e31a0570482acae3b71f
- sha1
- e5eb63c7d58973165bf5b244ca40634d1173927a
- sha256
- f74541823ffcbb9cf9b954cdc407575df9d7a8eedadbb9e0dc9fe2d68470fbce
tinymce.PluginManager.add("abbr",function(t){function o(){const e=t.selection.getNode();return t.dom.getParent(e,"abbr")}function r(){const e=o(),a=e?e.innerText:t.selection.getContent({format:"text"});if(!a){t.notificationManager.open({text:Joomla.Text._("PLG_TINY_ABBREVIATION_WARNING_NO_SELECTION"),type:"warning"});return}t.windowManager.open({title:e?Joomla.Text._("PLG_TINY_ABBREVIATION_EDIT"):Joomla.Text._("PLG_TINY_ABBREVIATION_INSERT"),initialData:{title:e&&e.getAttribute("title")||""},body:{type:"panel",items:[{type:"input",name:"title",label:Joomla.Text._("PLG_TINY_ABBREVIATION_DESCRIPTION_LABEL"),placeholder:"e.g. Web Content Accessibility Guidelines"}]},buttons:[{type:"cancel",text:"Cancel"},{type:"submit",text:e?"Update":"Insert",primary:!0}],onSubmit(i){const n=i.getData();if(!n.title){t.notificationManager.open({text:Joomla.Text._("PLG_TINY_ABBREVIATION_WARNING_NO_DESCRIPTION"),type:"warning"});return}e?t.dom.setAttrib(e,"title",n.title):t.insertContent(`<abbr title="${t.dom.encode(n.title)}">${t.dom.encode(a)}</abbr>`),i.close()}})}function l(){const e=o();if(!e){t.notificationManager.open({text:Joomla.Text._("PLG_TINY_ABBREVIATION_WARNING_REMOVE"),type:"warning"});return}const a=e.innerHTML;t.dom.replace(t.dom.createFragment(a),e)}return t.ui.registry.addIcon("abbr",'<svg height="24" width="24"><path d="M5 8a1 1 0 0 0 2 0V7h1a1 1 0 0 0 0-2H7V4a1 1 0 0 0-2 0v1H4a1 1 0 0 0 0 2h1Zm13-3h-6a1 1 0 0 0 0 2h6a1 1 0 0 1 1 1v9.72l-1.57-1.45a1 1 0 0 0-.68-.27H8a1 1 0 0 1-1-1v-3a1 1 0 0 0-2 0v3a3 3 0 0 0 3 3h8.36l3 2.73A1 1 0 0 0 20 21a1.1 1.1 0 0 0 .4-.08A1 1 0 0 0 21 20V8a3 3 0 0 0-3-3Z"></path></svg>'),t.ui.registry.addIcon("abbr_remove",'<svg height="24" width="24"><path d="M19,6H15a1,1,0,0,0,0,2h4a1,1,0,0,1,1,1v9.72l-1.57-1.45a1,1,0,0,0-.68-.27H9a1,1,0,0,1-1-1V15a1,1,0,0,0-2,0v1a3,3,0,0,0,3,3h8.36l3,2.73A1,1,0,0,0,21,22a1.1,1.1,0,0,0,.4-.08A1,1,0,0,0,22,21V9A3,3,0,0,0,19,6Zm-8.46,4.54A5,5,0,1,0,7,12,5,5,0,0,0,10.54,10.54ZM4,7A3,3,0,0,1,7,4a3,3,0,0,1,1.28.3l-4,4A3,3,0,0,1,4,7ZM9.7,5.71A3,3,0,0,1,10,7,3,3,0,0,1,5.72,9.7Z"></path></svg>'),t.ui.registry.addButton("abbr",{title:"Abbr",icon:"abbr",tooltip:Joomla.Text._("PLG_TINY_TOOLBAR_BUTTON_ABBREVIATION"),onAction:r}),t.ui.registry.addButton("abbr_remove",{title:"Remove Abbr",icon:"abbr_remove",tooltip:Joomla.Text._("PLG_TINY_TOOLBAR_BUTTON_REMOVE_ABBREVIATION"),onAction:l}),{getMetadata(){return{name:"Abbreviation Plugin (Joomla)",url:"https://www.joomla.org"}}}});
The same content is in 30 releases, Joomla 6.1.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.