可编辑文本突出显示

发布于 2024-08-04 19:36:12 字数 277 浏览 2 评论 0原文

我想创建一个可编辑的“文本区域”,其中文本突出显示(例如不同的颜色、粗体),并且我对与旧的(也许是当前的)浏览器的向后兼容性不感兴趣。

它不是代码编辑器,而是类似的东西。所以它与 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雨落□心尘 2024-08-11 19:36:12

有几个可以做到这一点:

There are a few ones which can do this :

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文