I’m currently working on a custom modeler based on the camunda-modeler and I need to add a label to one of my custom element. It should act just like a task’s label.
The orange-ish element is my custom element and I need to add a label to it just like the task I was editing in this presentation.
I managed to successfully implement LabelEditingProvider, but I’m actually facing an issue.
I implemented a Modeling to edit the name property of my custom element when the label editing is finished.
Here’s the code of my new Modeling class as well as the error I’m getting in the console:
As indicated by the error message it seems like that the two modeling instances are still around and both try to register handlers for the command shape.append.
Make sure you expose your custom Modeling via the name modeling to override the original implementation.
If you have more specific concerns and questions, please share your example on GitHub so we can have a look.