ericabouaf / wireit

A javascript wiring library to create web wirable interfaces for dataflow applications, visual programming languages or graphical modeling.
http://neyric.github.io/wireit/docs/
Other
520 stars 90 forks source link

Labels not showing in Save and Load function of Editor 0.5.0 #48

Closed ellahikamran closed 12 years ago

ellahikamran commented 13 years ago

Thanks i got it to work with version 0.5.0 , most of the drawing is working fine for me what i need to know now is I have made the following changes ,

  1. I have added a input ex inPlace edit to image container so we can label the image .
  2. I have added a input ex inPlace edit to the wire module Now on the editor when i click save the system saves the drawing into the database and when i load the drawing the container objects(image and wire ) appear fine but with the labels. What and where i should make the change to have the save and load function save and show my labels

Place below is my ImageContainer.js file content

/*** /**

YAHOO.lang.extend(WireIt.ImageContainer, WireIt.Container, {

/* * @method setOptions * @param {Object} options the options object / setOptions: function(options) { WireIt.ImageContainer.superclass.setOptions.call(this, options);

  this.options.image = options.image;
  this.options.xtype = "WireIt.ImageContainer";

  this.options.className = options.className || "WireIt-Container WireIt-ImageContainer";

  // Overwrite default value for options:
  this.options.resizable = (typeof options.resizable == "undefined") ? false : options.resizable;
  this.options.ddHandle = (typeof options.ddHandle == "undefined") ? false : options.ddHandle;

},

/* * @method render / render: function() { WireIt.ImageContainer.superclass.render.call(this); YAHOO.util.Dom.setStyle(this.bodyEl, "background-image", "url("+this.options.image+")"); this.labelField = new inputEx.InPlaceEdit({parentEl: this.bodyEl, editorField: {type: 'string'}, animColors:{from:"#FFFF99" , to:"#DDDDFF"},className:"inputEx-Imglabel" }); this.labelField.setValue(this.label); }

}); ****/

JoelRSimpson commented 12 years ago

I'm seeing something similar. When loading a workflow the labels are displayed, but the editor that was attached is no longer available.