Current oav website

This commit is contained in:
Charlie Root
2023-03-20 12:18:38 +01:00
commit a096ce07cf
3270 changed files with 261778 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B

View File

@ -0,0 +1,4 @@
'use strict';(function(){CKEDITOR.plugins.add('dclink',{icons:'dclink',init:function(editor){editor.addCommand('dcLinkCommand',{exec:function(editor){if(editor.getSelection().getSelectedElement()!=null||editor.getSelection().getNative().toString().replace(/\s*/,'')!=''){$.toolbarPopup('popup_link.php?plugin_id=dcCKEditor');}}});editor.ui.addButton('dcLink',{label:dotclear.msg.link_title,command:'dcLinkCommand',toolbar:'insert'});editor.on('doubleclick',function(e){const element=CKEDITOR.plugins.link.getSelectedLink(editor)||e.data.element;if(!element.isReadOnly()){if(element.is('a')&&!element.hasClass('media-link')&&!element.hasClass('ref-post')){editor.getSelection().selectElement(element);let popup_url='popup_link.php?plugin_id=dcCKEditor';if(element.getAttribute('href')){popup_url+='&href='+element.getAttribute('href');}
if(element.getAttribute('hreflang')){popup_url+='&hreflang='+element.getAttribute('hreflang');}
if(element.getAttribute('title')){popup_url+='&title='+element.getAttribute('title');}
$.toolbarPopup(popup_url);return false;}}});}});})();