Closed kusigit closed 1 year ago
why not implement a new element instead of changing the existing one?
...and - thanks a lot for your contribution!
maybe something like this? https://electra.academy/simulator/?shared=805eb6104c2f4b7b29c48628c5ad22f7c26b875c
You can even use "markdown" in a textbox ...with link support.
this is the code for the markdown (or HTML) overlay. https://github.com/freegroup/electra/blob/main/shapes/data/global/widget/Markdown.js
It's not perfectly integrated....but works for my use-case.
the method getParameterSettings
can be ignored. It is a callback of the application itself.
https://github.com/freegroup/draw2d/tree/master/examples/shape_custom_markdown
markdown examples now support zooming the canvas - and links...
How to use it: