HTML5 Canvas Text Edit

前端 未结 3 1984
谎友^
谎友^ 2021-01-13 17:18

I have a text filled in HTML5 canvas using fillText(); How to make it editable and read the value into a variable? The text must be inside canvas, as it will

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-13 17:47

    Take a look at Zebra. It's a set of widgets that render on an html canvas and one of the widgets is a text editor. Looks like it's free, open source, and in addition to providing links to their js files, they have a Git archive up on GitHub. http://www.zebkit.org/

提交回复
热议问题