WYSIWYG html editor query

2019-07-21 08:14发布

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条回答
Summer. ? 凉城
2楼-- · 2019-07-21 08:47

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

查看更多
登录 后发表回答