所见即所得的html编辑器查询 [英] WYSIWYG html editor query

查看:205
本文介绍了所见即所得的html编辑器查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个简单的所见即所得的HTML编辑器,以使我的应用程序的用户能够设计简单的HTML电子邮件。



目前我已决定使用带有MSHTML的网页浏览器控件来让我编辑显示内容。我有一个工具栏,其中包含所有相关按钮,粗体,下划线等。

我需要一种方法来检查当前块是否具有任何格式,因此正确状态可以显示在工具栏的按钮上。我尝试向IHTMLDocument添加一个事件处理程序,以便在移动鼠标或按下箭头键时触发,但是,这会停止Web浏览器进行任何输入。



有没有更简单的方法来实现这个目标? 解决方案

有几个丰富的免费编辑器,更好的编辑器。



有关编辑列表,请参阅下面的链接。



http://www.queness.com/post/212/ 10-jquery-and-non-jquery-javascript-rich-text-editors


I am in the process of creating a simple WYSIWYG HTML editor to enable the users of my application to design simple HTML emails.

At the moment I have decided to use the web browser control with MSHTML to enable me to edit what is displayed. I have a tool bar which holds all of the relevant buttons, bold, underline, etc.

I need a way to check if the current block has any formatting so the correct state can be displayed on the buttons in the tool bar. I tried to add an event handler to the IHTMLDocument to fire when the mouse is moved or the arrow keys are pressed, however, this stopped the web browser from taking any input.

Is there a simpler way to achieve this goal?

解决方案

There are several rich editors for free out of that tinyMCE is one of the better editor.

For list of editors see the link below.

http://www.queness.com/post/212/10-jquery-and-non-jquery-javascript-rich-text-editors

这篇关于所见即所得的html编辑器查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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