projects
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Migration vers version 4 : restauration des outils. Prise en charge de 'allowedConten...
[ckeditor.git]
/
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
(file)
--- 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 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',
{
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',
{
editor.ui.addButton('PlinnImage',
{
@@
-71,6
+76,7
@@
CKEDITOR.plugins.add( 'plinn_image',
command : 'plinn_image'
});
}
command : 'plinn_image'
});
}
+
});
})();
});
})();