HTML5 Canvas文本编辑 [英] HTML5 Canvas Text Edit

查看:824
本文介绍了HTML5 Canvas文本编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文本填充在HTML5画布使用 fillText();
如何使它可编辑和读取值到变量?
文本必须在canvas内,因为它将被写在一些复杂的多边形形状内。

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 be written inside some complex polygon shape.

推荐答案

在斑马。它是一组在HTML画布上呈现的小部件,其中一个小部件是文本编辑器。看起来它是免费的,开源,除了提供链接到他们的js文件,他们有一个Git存档在GitHub。 http://www.zebkit.org/

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/

这篇关于HTML5 Canvas文本编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆