rete icon indicating copy to clipboard operation
rete copied to clipboard

readonly

Open ittaboba opened this issue 7 years ago • 3 comments

When I set readonly: true I get the connections and nodes locked but the text inside the nodes is still editable.

ittaboba avatar Dec 19 '18 10:12 ittaboba

Node's controls are independent of Editor. I think there is a good solution to check whether the read-only mode is turned on inside the control. I will write you later

Ni55aN avatar Dec 19 '18 11:12 Ni55aN

readonly plugin is updated

Ni55aN avatar Dec 20 '18 01:12 Ni55aN

Inside control:

if(this.emitter.exist('isreadonly') && this.emitter.trigger('isreadonly')) return;
this.putData(key, value); // change value if not readonly

Ni55aN avatar Dec 28 '18 11:12 Ni55aN