WYSIWYG html editor query

ぃ、小莉子 提交于 2019-12-10 23:14:22

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/2020049/wysiwyg-html-editor-query

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!