开源winform HTML编辑器(WYSIWYG html editor)(2013-4-20)

2013-4-20:我把老版本的代码重构了一下,新版本赋值问题已完全解决,并且提供很多api给调用。推荐大家升级到最新版本。下载地址:http://tewuapple.github.io/WinHtmlEditor/

为雅安祈祷!

最新版截图(优化前景色和背景色用户体验并且增强表格修改功能)

WinHtmlEditor最新版界面

 

快捷键 功能
ctrl+b 给选中字设置为加粗
ctrl+c 复制选中内容
ctrl+x 剪切选中内容
ctrl+v 粘贴
ctrl+y 重新执行上次操作
ctrl+z 撤销上一次操作
ctrl+i 给选中字设置为斜体
ctrl+u 给选中字加下划线
ctrl+a 全部选中
shift+enter 软回车

 

Winform下的HTMLEditor引用Microsoft.mshtml的注意事项 

有很多用户发来反馈,说窗体加载的时候赋值赋不上去,后来发现是赋值的时候该控件还没初始化完成,把赋值语句修改如下就正常了(同理其他属性设置): 

 this.Shown += new EventHandler(Form_Shown);
   void Form_Shown(object sender, EventArgs e)
        {
            this.htmlEditor1.HTML = temp;
        }

 如何使用该控件?(how to use WinHtmlEditor?)

详情请下载解压缩,看视频文件,下载地址:how-to-use-WinhtmlEditor.rar

vb.net使用WinhtmlEditor,下载地址:vb.net使用WinhtmlEditor.rar (多谢群友完善)

如有任何问题或建议请加入QQ群:217478320

兼容.net 2.0以上

开源协议:apache2.0

2013-3-24:自定义按钮显示

新增对工具栏和右键菜单的可配置。如果你不想让某些菜单显示,请在app.config文件appSettings节点配置如下设置,即可:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="removeButtons" value="Cut,Paste"/>
        <add key="removeMenus" value="Cut,Paste"/>
    </appSettings>
</configuration>

现在提供如下标签设置:

New,Open,Print,Save,ShowHTML,Copy,Cut,Paste,Delete,Find,RemoveFormat,JustifyCenter,JustifyFull,JustifyLeft,JustifyRight,Underline,Italic,Bold,BackColor,

ForeColor,StrikeThrough,CreateLink,Unlink,InsertTable,InsertImage,InsertHorizontalRule,Outdent,Indent,InsertUnorderedList,InsertOrderedList,Superscript,

Subscript,WordCount,InsertDate,InsertTime,ClearWord,SpellCheck,About,Preview,AutoLayout,Undo,Redo

(2012-11-05)

新特性:

 

正式发布版本1.0.0.0(2012-06-30

新特性:

1、字数统计

2、新加清除MS-Word格式、拼写检查、插入表格、日期、时间,上标、下标和打印功能

以下是最新版的截图:

 

posted @ 2012-06-30 11:47  特务小强  阅读(17174)  评论(65编辑  收藏  举报