Click here to Skip to main content
15,917,617 members
Articles / Programming Languages / C#
Article

This is a simple html editor for .NET applications

Rate me:
Please Sign up or sign in to vote.
2.50/5 (9 votes)
27 Aug 2006 70.3K   3.1K   28   9
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.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
Spain Spain
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionNeed to supress the error message Pin
Chandrakant Mane26-May-13 22:49
Chandrakant Mane26-May-13 22:49 
HI,

First of all let me tell you that this is a great control that you have created but I just want to suppress the Message Box for the Edit Mode that the web browser gives by default.

Please provide a solution for the same in my case i m using multiple instances of the given custom control

Thanks in Advance
GeneralMy vote of 1 Pin
Luis Oliveira 19662-Nov-11 5:03
Luis Oliveira 19662-Nov-11 5:03 
QuestionProblem on Windwos XP Pin
kamran8513-Sep-11 4:20
kamran8513-Sep-11 4:20 
QuestionVb.net Pin
kamran8524-Aug-11 6:06
kamran8524-Aug-11 6:06 
Questionhow to decrease Line Spacing?? Pin
ai_mueller9-Oct-10 3:17
ai_mueller9-Oct-10 3:17 
AnswerRe: how to decrease Line Spacing?? Pin
Ivica762-Jun-11 21:56
Ivica762-Jun-11 21:56 
GeneralVB.NET 2003 Pin
montapas31-Aug-06 3:47
montapas31-Aug-06 3:47 
GeneralCorrupt Download Pin
Brendan Grant12-May-06 11:23
Brendan Grant12-May-06 11:23 
GeneralRe: Corrupt Download Pin
Javier Lema14-May-06 21:09
Javier Lema14-May-06 21:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.