X-Git-Url: https://scm.cri.ensmp.fr/git/ckeditor.git/blobdiff_plain/579f65bc95a773bc6f8da75f6849ea49f365368b..5f250f06a1725b57cdefa30f58b139b6d059ccc2:/skins/ckeditor/plugins/plinn_image/plugin.js diff --git a/skins/ckeditor/plugins/plinn_image/plugin.js b/skins/ckeditor/plugins/plinn_image/plugin.js index ffb96fe..7e343ce 100644 --- a/skins/ckeditor/plugins/plinn_image/plugin.js +++ b/skins/ckeditor/plugins/plinn_image/plugin.js @@ -59,10 +59,15 @@ CKEDITOR.plugins.add( 'plinn_image', ); }); var pluginPath = this.path; + var allowed = 'img[alt,!src]{border-style,border-width,float,height,margin,margin-bottom,margin-left,margin-right,margin-top,width}'; + var required = 'img[alt,src]'; var command = editor.addCommand('plinn_image', { - exec : function(editor){openPlinnImageDialog(pluginPath, editor);} - }); + exec : function(editor){openPlinnImageDialog(pluginPath, editor);}, + allowedContent: allowed, + requiredContent: required + } + ); editor.ui.addButton('PlinnImage', { @@ -71,6 +76,7 @@ CKEDITOR.plugins.add( 'plinn_image', command : 'plinn_image' }); } + }); })();