所见即所得的地方可以限制文本/高度 [英] A WYSIWYG Where it's possible to limit the text/height

查看:94
本文介绍了所见即所得的地方可以限制文本/高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好,所以我尝试了tinyMCE。

Ok, so I tried out tinyMCE.

在没有运气和关于如何限制编辑器内容的大量研究之后,我正在寻找其他替代方法。

After no luck and a lot of research on how to limit the editors content, I'm looking for other alternatives.

以下是所见即所得的需求:

These are the needs for the WYSIWYG:


  • 具有以下功能/按钮:粗体,斜体,下划线,公牛列表,表格控件

  • 可以限制输入。如果我将编辑器设置为300宽x 500高度,并且您键入的高度大于该高度,则它不应应用滚动条,并且您将无法编写更多内容。

  • 可以设置多个一页中的编辑器

哪个所见即所得的编辑器可以满足我的需求?

Which WYSIWYG editor can fill my needs?

推荐答案

TinyMCE或ck编辑器应满足您的需求。

TinyMCE or ck editor should meet your needs.

关于滚动问题,请尝试使用jquery和keypress事件一起测试保存编辑器的div中内容的长度。您还可以将其与屏幕上的字符计数器结合使用,以动态显示用户剩余的字符数。

Regarding the scroll issue, try using jquery and the keypress event along to test the length of the content in the div holding the editor. You could also combine this with a character counter on the screen to dynamically display how many characters a user has left.

charCount = $(this).val().length;

这篇关于所见即所得的地方可以限制文本/高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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