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;}}});}});})();

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 B

View File

@ -0,0 +1 @@
'use strict';(function(){CKEDITOR.plugins.add('entrylink',{icons:'entrylink',init:function(editor){const popup_params={'width':760,'height':500};editor.addCommand('entryLinkCommand',{exec:function(editor){if(editor.getSelection().getNative().toString().replace(/\s*/,'')!=''){$.toolbarPopup('popup_posts.php?popup=1&plugin_id=dcCKEditor',popup_params);}}});editor.ui.addButton('EntryLink',{label:dotclear.msg.post_link_title,command:'entryLinkCommand',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);$.toolbarPopup('popup_posts.php?popup=1&plugin_id=dcCKEditor',popup_params);return false;}}});}});})();

View File

@ -0,0 +1 @@
CKEDITOR.dialog.add('imgDialog',function(editor){return{title:dotclear.msg.img_title,minWidth:400,minHeight:100,contents:[{id:'main-tab',elements:[{id:'url',type:'text',label:'URL',validate:CKEDITOR.dialog.validate.notEmpty(dotclear.msg.url_cannot_be_empty)}]}],onOk:function(){var dialog=this;var src=dialog.getValueOf('main-tab','url');var img=editor.document.createElement('img');img.setAttribute('src',src);img.setAttribute('alt',src);editor.insertElement(img);}};});

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 B

View File

@ -0,0 +1 @@
'use strict';(function(){CKEDITOR.plugins.add('img',{init:function(editor){editor.addCommand('dcImgCommand',new CKEDITOR.dialogCommand('imgDialog'));CKEDITOR.dialog.add('imgDialog',this.path+'dialogs/img.js');editor.ui.addButton('img',{label:dotclear.msg.img_title,command:'dcImgCommand',toolbar:'insert',icon:this.path+'icons/img.png'});}});})();

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

View File

@ -0,0 +1 @@
'use strict';(function(){CKEDITOR.plugins.add('media',{icons:'media',init:function(editor){const popup_params={'width':760,'height':500};editor.addCommand('mediaCommand',{exec:function(){$.toolbarPopup('media.php?popup=1&plugin_id=dcCKEditor',popup_params);}});editor.ui.addButton('Media',{label:dotclear.msg.img_select_title,command:'mediaCommand',toolbar:'insert'});editor.on('doubleclick',function(e){const element=CKEDITOR.plugins.link.getSelectedLink(editor)||e.data.element;if(!element.isReadOnly()){if(element.is('img')||(element.is('a')&&element.hasClass('media-link'))){$.toolbarPopup('media.php?popup=1&plugin_id=dcCKEditor',popup_params);return false;}}});}});})();