如何使用c Sharp开发文本编辑器(如免费文本框)以在网页中使用 [英] How to develop a text editor like the free textbox to be used in web pages using c sharp

查看:73
本文介绍了如何使用c Sharp开发文本编辑器(如免费文本框)以在网页中使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发文本编辑器,例如使用c Sharp在网页中使用的免费文本框,以便用户能够输入丰富的数据,他们应该能够使用c#选择自己的字体,大小,颜色等. .它应该具有ms-word类型的功能.
我不想只是下载该工具,而是想设计自己的工具.请帮忙.

I want to develop text editor like the free textbox to be used in web pages using c sharp,so that the users are able to enter rich data,they should be able to choose their own fonts,size,color etc using c#. It should have ms-word type functionality.
I don''t want to just download the tool, I want to design my own. Please help.

推荐答案

这里的问题是Internet相对较慢.如果在C#中实现所有功能,即在服务器端,则意味着您将需要在每个微小的输入操作上都张贴一个帖子.这是可以实现的,但可能太慢而无法实用.

也就是说,实际的解决方案是在HTML和JavaScript的基础上,在浏览器的客户端上使用编辑器.周围有许多解决方案.

TinyMCE可能是最受欢迎的解决方案之一.请参阅:
http://en.wikipedia.org/wiki/TinyMCE [ http://www.tinymce.com/ [ ^ ],
下载页面: http://www.tinymce.com/download/download.php [ http://bit.ly/xQgyJT [
The problem here is that the Internet is relatively slow. If you implement everything in C#, that is, on a server side, it means you will need a post on every tiny input action. This is possible to implement but can be too slow to be practical.

That said, the practical solution would an editor working on a client side, in a browser, based on HTML and JavaScript. There is a number of solutions like that around.

Probably one of the most popular solutions is TinyMCE. Please see:
http://en.wikipedia.org/wiki/TinyMCE[^],
http://www.tinymce.com/[^],
download page: http://www.tinymce.com/download/download.php[^].

If you want, try to find some more: http://bit.ly/xQgyJT[^].

—SA


看看脚本# [ ^ ]或 ^ ]

您在浏览器中所做的任何事情都是使用javascript和html完成的-上面提到的工具可让您在c#中工作,并且仍然可以创建将在浏览器中执行的内容.

开始之前,请先查看 CKEditor [
Take a look at Script#[^] or jsc (c# to javascript)[^]

Anything you do in the browser is done using javascript and html - the tools mentioned above lets you work in c# and still create something that will execute in the browser.

Before you start have a look at CKEditor[^], either to learn, or just use - perhaps it will do well enough for you :)

Best regards
Espen Harlinn


这篇关于如何使用c Sharp开发文本编辑器(如免费文本框)以在网页中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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