如何在文本框中使用文本格式设置选项 [英] how to use text formatting option in textbox

查看:55
本文介绍了如何在文本框中使用文本格式设置选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我正在使用文本框.我想在文本框中应用文本格式.如果用户希望将文本设置为粗体,则可以单击粗体选项,或者如果要更改文本的大小,则可以更改字体大小.我该怎么做

解决方案

我建​​议CKEditor( http://ckeditor.com/ [ ^ ]),它是高度可定制的.

您尝试做的事情几乎没有内置在任何WYSIWYG(所见即所得)编辑器中.因此,您应该自己实施.但是,通过使用第三方WYSIWYG并对其进行自定义(而不是完全从头开始创建WYSIWYG编辑器),可以确保您已经具有数十种其他功能.

我还要注意,大多数所见即所得的编辑器都可以变得简单到只有一个带有基本格式按钮的工具栏即可. a href ="http://ckeditor.com/">此 [ ^ ],值得.


in my application i m using text box.I want to apply text formatting on text box. if user want to make text as bold he can click on bold option or if he want change the size of text he can changed the font size. how can i do this

解决方案

I recommend CKEditor(http://ckeditor.com/[^]), which is highly customizable.

The thing you try to do, is not built-in in almost any WYSIWYG (What You See Is What You Get) editor out there. Thus, you should implement it on your own. But by using a third-party WYSIWYG, and customizing it (instead of creating a WYSIWYG editor entirely from scratch), you can get sure that you already have tens of other functionalities.

Also I should note that most WYSIWYG editors can become as simple as having one toolbar with basic formatting buttons


I am not sure you are interested in ready made componants But if yes then you can prefer THIS[^], It''s worth.


这篇关于如何在文本框中使用文本格式设置选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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