Migration vers version 4 : restauration des outils. Prise en charge de 'allowedConten...
[ckeditor.git] / skins / ckeditor / plugins / plinn_image / plugin.js
index ffb96fe..7e343ce 100644 (file)
@@ -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'
                        });
        }
+       
 });
 
 })();