Current oav website
This commit is contained in:
@ -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 |
@ -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'});}});})();
|
||||
Reference in New Issue
Block a user