可编辑文本突出显示
我想创建一个可编辑的“文本区域”,其中文本突出显示(例如不同的颜色、粗体),并且我对与旧的(也许是当前的)浏览器的向后兼容性不感兴趣。
它不是代码编辑器,而是类似的东西。所以它与 CkEditor 确实不同,因为内容应该向用户显示格式化,但我不想向文本添加 HTML 标签。我只需要改变外观,不需要修改文字!
我读到 Bespin 使用画布。这是正确且最有效的解决方案吗?
I would like to create an editable "textarea" with text highlighting (e.g. different colours, bold) and I am not interested in backward compatibility with old (and meybe current) browsers.
It isn't a code editor, but something similar. So it is really different from CkEditor, because the content should appear formatted to the user, but I don't want to add HTML tags to the text. I only need to change the appearances, not to modify the text!
I read that Bespin uses canvas. Is that the right and most effective solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有几个可以做到这一点:
There are a few ones which can do this :