开发者

WYSIWYG html editor query

开发者 https://www.devze.com 2022-12-16 04:02 出处:网络
I am in the process of creating a simple WYSIWYG HTML editor to enable the users of my application to design s开发者_JAVA百科imple HTML emails.

I am in the process of creating a simple WYSIWYG HTML editor to enable the users of my application to design s开发者_JAVA百科imple 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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号