HTML Editor Providers - Introduction and concept

3. August 2007

I am publishing a first draft of my idea on using an HTML Editor provider of the BlogEngine.Net. 

Essentially, I added an html provider to the web application.  I got a little frustrated with tinyMCE.  So, I decided that I wanted an easy way to interchange html editors.  I prefer Telerik and FCKEditor over tinyMCE any day.  However, the motto for BlogEngine.Net is no third party assemblies.  I like that idea.  No supporting third party assemblies.  Period. 

I am still working on the provider for tinyMCE.  The issue that I am running into is the having the js files load and execute on the textbox that is being rendered.  It can be fixed but I haven't finished it yet. 

The code is pretty well organized and you should be able to review it with much confusion.  Here is what I did...

  1. I added a Control.Textbox class in the App_Code/Controls directory
  2. Removed the reference to the tinyMCE web user control page
    <%@ Register src="~/admin/tinyMCE.ascx" mce_src="~/admin/tinyMCE.ascx" TagPrefix="Blog" TagName="TextEditor" %>
  3. I left the <Blog:TextEditor runat="server" id="txtContent" TabIndex="4" /> extactlly the same.
  4. I added this to the App_Code
    image 
  5. I added this folder to support the two html editors that require external files
    image
  6. I added this to the <BlogEngine> Section
  7. <BlogEngine>
      <blogProvider defaultProvider="XmlBlogProvider">
        <providers>
          <add name="XmlBlogProvider" type="BlogEngine.Core.Providers.XmlBlogProvider"/>
          <add name="MSSQLBlogProvider" type="BlogEngine.Core.Providers.MSSQLBlogProvider"/>
        </providers>
      </blogProvider>
      <htmleditorprovider defaultProvider="FCKEditorHTMLProvider">
        <providers>
          <add name="TextboxHTMLProvider" type="BlogEngine.Core.Providers.HTMLEditors.TextboxHTMLEditorProvider" height="200" width="500"/>
          <add name="FreeTextBoxHTMLProvider" type="BlogEngine.Core.Providers.HTMLEditors.FreeTextBoxHTMLProvider" height="200" width="500"/>
          <add name="FCKEditorHTMLProvider" type="BlogEngine.Core.Providers.HTMLEditors.FCKEditorHTMLProvider" height="300" width="800"/>
          <add name="tinyMCE" type="BlogEngine.Core.Providers.HTMLEditors.tinyMCEHTMLEditorProvider" height="300" width="800"/>
        </providers>
      </htmleditorprovider>
    </BlogEngine>
  8. Run the solution and it works.

Take a look and tell me what you think.  I know how I am voting.

BlogEngine.NET.zip (2.62 mb)

.Net, Reviews, Visual Studio, BlogEngine.Net , ,

Comments

CFletcher
CFletcher
5/15/2008 4:03:38 AM #
Works.
5/17/2008 11:13:58 PM #
Hey Roman, I would be very interested in looking at this more and creating a patch for it. I think it would be in BlogEngine's better interest to allow for different editors based on providers. The link to the zip is dead though.

www.romanclarkson.us/file.axd
7/11/2010 1:38:03 AM #
Yeah right. It seems impossible.
7/11/2010 1:42:12 AM #
It is remarkable, a rather amusing idea
7/12/2010 11:41:45 AM #
This is a nice site.  Good fresh UI and nice informative articles. I will be coming back in a bit, thanks for the great blog.
7/14/2010 10:01:45 PM #
amazon coupon
7/15/2010 10:50:27 AM #
U wilt geld lenen zonder BKR toetsing? De opties hiervoor worden groter, kijk verder en ontdek hoe u wél geld kunt lenen, snel & eenvoudig.
7/25/2010 9:30:56 AM #
Migraine is niet zomaar hoofdpijn. Migraine kan je leven totaal ontregelen en verzieken. De dreiging van migraine hangt dagelijks meer dan 10% van alle
7/26/2010 2:19:03 AM #
This is my third visit to this blog. We are starting a new initiative in the same category as this blog. Your blog provided us with important information to work on. You have done a admirable job.
7/26/2010 3:42:50 PM #
Pheromones!! Thanks for taking the time to discuss this, pheromone,  article, pheromones,, I feel strongly about it and enjoy, pheromones, learning more on this, pheromone,  idea.
7/27/2010 3:26:46 AM #
Pheromones!! I like the way your homepage is set up. It has a nice theme to it. I enjoy, pheromones, the graphics of your site, pheromones,. I wish I can start a site, pheromones, that, pheromone,  looks as good as yours .
7/28/2010 10:51:42 PM #
I appreciate the time you put in this work or in this post. Although you have bright ideas, I really can't agree with them. I'm sure there are better ways to walk through this difficult situation. Not trying to flame or be stupid or anything .
7/30/2010 4:36:33 PM #
Heya, I located your web page through yahoo because it came up for "laptops" but had issues viewing the website page for some reason. It was throwing some sort of error code at the bottom of the page. Just decided I'd let you know.
7/31/2010 1:28:58 AM #
thanks for share. wait for more article

Regards
Replica Watches
7/31/2010 5:15:46 AM #
It's crazy this gets written about so little, I'm sure the demand is there.
7/31/2010 2:13:21 PM #
I was wondering if I could use this information in my website. I'll give a link to your Blog, may I?

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading