How to access custom node label in html file

I have seen the following code in core inject node (20-inject.html)

var label =;

I would like to do the same in my custom node to access the node label. But... I am getting "_def of undefined" error.

Tried another way that is in the same core inject node (20-inject.html).

var label = this._(name);
getting "_ of undefined" error

Can any please suggest what is wrong and how to fix it.

Thanks in advance

Is this in your oneditprepare function? If so, how exactly have you defined the function?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.