jquery最小的富文本框插件 [英] jquery minimal rich textbox plugin

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

问题描述

我正在为我正在处理的网络应用寻找一个非常小的jQuery富文本框插件。

I am looking for a very minimal jQuery rich textbox plugin for a web app I am working on.

用户只需要看到'文本框',而不是任何工具栏,因为所有丰富的格式都将根据他们输入的内容进行编码。

The user will only need to see the 'textbox', and not any toolbars as all of the rich formatting will be coded depending on what they type.

我试图用iframe创建自己的格式,但是有问题。其中一个是在div中包装字符串时,插入符号被移动到开头,它不能在没有单击的情况下移动到div中。 http://jsfiddle.net/DVjYa/

I have attempted to create my own with an iframe, but there are problems. One of them being when wrapping strings in divs, the caret is moved to the beginning and it can't be moved inside the div without clicking. http://jsfiddle.net/DVjYa/

这是一个问题,因为我需要它像普通的文本框一样。在普通文本框中,您可以使用箭头键导航而无需单击。因此,我正在寻找已经克服了这些问题的插件。

This is a problem because I need it to behave like a normal textbox. In a normal textbox, you would be able to navigate with the arrow keys without having to click. Hence why I am looking for a plugin which has already overcome these problems.

推荐答案

你可以使用 CLEDITOR 非常轻量级。您可以禁用所有工具栏按钮并隐藏工具栏。除此之外,它还允许您使用键盘快捷键(CTRL + B / CTRL + I)进行粗体/斜体选择,即使工具栏不存在也是如此。

You can use CLEDITOR which is very lightweight. You can disable all the toolbar buttons and hide the toolbar as well. In addition to this, it lets you make the selection bold/italic using keyboard shortcuts (CTRL+B/CTRL+I) even though the toolbar does not exist.

演示: http://jsfiddle.net/Rft3A/

这篇关于jquery最小的富文本框插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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