Welcome to the support center for

Fancy Product Designer & Multistep Product Configurator

Answered

Remove text on click

Hello, I have text areas in the product stage designer, it has placeholder text, I wanted to figure out how can I remove the placeholder text on single click instead of having to double click to select all then delete it manually.

I tried to do some coding but I am not very good with javascript, My issue is how to get the existing canvas element then edit it 

Currently I have something like this but I get error undefined stage 

 

stage.on("text:editing:entered", clearText);

function clearText(e) {
  if (e.target.type === "i-text") {
    if (e.target.text === "Tap and Type") {
      e.target.text = "";
      stage.renderAll();
    };
  }
}

 


1 person has this question

I have the same issues and I'm also trying to solve the same problem.

Biggest drama is that if you use your above example then everytime someone clicks the text box then the field gets cleared which is not ideal for most applications.


If I get anywhere Ill let you know.

Yes that would be very good and easier for the customers with just one click. Would be great if you could do it that way.

Answer

Please state your topic in the feature request forum so we can have this in mind on for further Updates.

Hello Radykal, was this point addressed in the latest release, by chance?


Thanks

Max


Login or Signup to post a comment