65.9K
CodeProject is changing. Read more.
Home

This is a simple html editor for .NET applications

starIconstarIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIcon

2.50/5 (9 votes)

May 12, 2006

viewsIcon

70709

downloadIcon

3144

This is a simple html editor

Sample Image - HtmlEditor.jpg

Introduction

Sorry by my poor english. It is a symple WYSIWYG editor to insert html code in our applications.

Features

  • WYSIWYG Editor using the DHTML Editor of Internet Explorer
  • Edit mode / Browse mode / Source code editor
[Browsable(true)]
        [Category("Behavior")]
        [Description("Is ReadOnly.")]
        public bool IsEditable {
            get { return this.edit.IsDesignMode; }
            set { this.edit.IsDesignMode = value; }
        }

        [Browsable(true)]
        [Category("Behavior")]
        [Description("Edit mode / Browse mode.")]
        public bool ShowToolbar {
            get {
                if (this.splitContainer1.SplitterDistance < 30) return false;
                else return true;
            }
            set {
                if (value == true) this.splitContainer1.SplitterDistance = 30;
                else this.splitContainer1.SplitterDistance = 0;
            }
        }

Text in bold:
     this.edit.Document.execCommand("bold", false, null);

Why HtmlEditor?

Because its free. Because you can modified.