-/* © Benoît Pin, MINES ParisTech */
+/* © 2011 Benoît Pin, MINES ParisTech */
(function(){
{
init : function( editor )
{
+ /* Add listener on getData event to compute images
+ src attributes before saving data.
+ */
editor.on('instanceReady', function(){
editor.on('getData',
function(evt) {
}
);
});
+
+ var command = editor.addCommand('plinn_image',
+ {
+ exec : function(editor) {
+ alert('Bonjour la France !');
+ }
+ });
+
+ editor.ui.addButton('PlinnImage',
+ {
+ label : editor.lang.common.image,
+ icon : this.path + 'dialog/plinn_image.gif',
+ command : 'plinn_image'
+ });
+ console.log(this.path);
}
});