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?
8/1/2010 1:54:07 PM #
Lenen zonder BKR toetsing gaat vandaag heel gemakkelijk. Binnen een paar uur geld lenen zonder BKR toetsing doet u hier, lees snel verder
8/1/2010 8:45:34 PM #
Thanks for sharing these useful information! Hope that you will continue doing nice article like this. I will be one of your loyal reader if you maintain this kind of post!This is one of the best post I found so far. The contents are very good and very informative.I subscribed to your RSS feed by the way!Thanks, this is really cool!
8/1/2010 11:56:38 PM #
I'm glad I found a homepage that deals with the same thing I'm dealing with. I always read the whole post and keep an eye on other comments too before commenting myself. In this way i have found some good site that I now follow beyond the purpose of getting links from them. For example, this is my third visiting your homepage. I always enjoy the content and the way you write .
8/2/2010 8:29:06 AM #
I was wondering if I can get this information in my blog. I will provide a link to your website, is it ok?
8/2/2010 8:41:18 PM #
Wow everyone seems to love the blog. It is a good blog.
8/3/2010 4:54:24 PM #
Can I give you a suggestion? Do you think you could add a little more in the way of content in this post? I think youve got some fascinating points, but I am just not sold. Maybe you could give a few more links to your site.
8/4/2010 5:52:30 PM #
I like to take a break during the my day and look through some blogs to see what others are saying. This blog appeared in my searches and I could not help clicking on it. I'm glad I did because it was a very enjoyable read.  
8/6/2010 6:44:41 AM #
It's a beautiful country, more people need to recognise that.
8/8/2010 6:04:00 AM #
This post was very well written, and it also contains a lot of useful facts. I appreciated your professional manner of writing this post. Thanks, you have made it easy for me to understand.
8/9/2010 2:24:51 AM #
great resources here. I'll be back for the next your posting. keep writing and happy blogging.
8/9/2010 8:11:19 PM #
I just read through the entire article of yours and it was quite good. This is a great article thanks for sharing this informative information. I will visit your blog regularly for some latest post.
8/10/2010 10:12:34 AM #
You have actually made some excellent points here. I particularly liked how you fit so a lot valuable data into such a concise blog post which created it truly enjoyable to read your thoughts for the topic. IMHO you put lots of excellent facts in this article without all the filler that most bloggers use just to make their posts appear longer, which is ideal for a gal like me who doesn't have considerably time cause I'm usually about the go. So numerous on the results on search engines are just unintelligible junk, it is nice to see a post that creates sense. I will definitely be adding this blog to my favorites list so I can share it with my friends. I appear forward to coming back to read your future posts also.
8/10/2010 10:39:52 PM #
You not going to believe this but I have lost all day searching for some articles about this. I wish I knew of this site earlier, it was a fantastic read and really helped me out. Have a good one.
8/10/2010 11:58:12 PM #
Well said, I could not agree more with you on this issue. I think your blog is very popular on this topic judging by all the other comments posted to it. I just wanted to leave a comment to appreciate your hard work.
8/12/2010 3:52:57 AM #
Hoeveel kan ik lenen? (hypotheek). Wat worden mijn maandlasten? (hypotheek) ... Hoeveel hypotheek heb ik nodig? Hoe hoog is de boete die ik nu zou moeten
8/12/2010 6:56:39 AM #
This is my second visit to your blog. We are starting a new initiative in the same category as this blog. Your blog provided us with valuable information to work with. You have done a admirable job.
8/14/2010 4:07:06 AM #
this was a very entertaining read.  i enjoyed it very much~
8/14/2010 10:50:41 PM #
Wonderful learn, I simply passed this onto a colleague who was in search of this info. I've you bookmarked on Digg.
8/17/2010 10:44:14 PM #
This article gives the light in which we can observe the reality. this is very nice one and gives indepth information.
8/18/2010 2:40:01 PM #
great resources here. I'll be back for the next your posting. keep writing and happy blogging.
8/19/2010 4:17:32 AM #
This is a great site.  Good fresh user interface and nice informative blogs. I will be coming back in a bit, thanks for the great article.
8/19/2010 5:59:48 PM #
I recently came across your web site and have been reading along. I thought I would leave my very first comment. Nice blog. I will keep visiting this website very frequently.
8/21/2010 8:21:16 AM #
Hi. I just noticed that your site looks like it has a few code problems at the very top of your website's page. Is it an older version of blogengine.net?  I'm not sure if everybody is getting this same bugginess when browsing your site? I am using a totally different browser than most people, referred to as Opera, so that is what might be causing it? I just wanted to make sure you know. Thank you for posting some great postings and I'll try to return back with a completely different browser to check things out!
8/21/2010 8:31:00 AM #
Do you have a spam problem  here; I also use Blog Engine, and I was wondering about your situation; we have developed some good techniques and we would like to exchange ideas with others, please Email me if you are interested.
8/21/2010 6:32:57 PM #
Pretty good post. I just came across your site and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.
8/22/2010 12:12:53 AM #
You're soooo talented in writing. God is truly utilizing you in tremendous ways.
8/22/2010 4:30:40 AM #
I like to take a break during the day and look through some blogs to see what others are talking about. This blog happened to show up in my searches and I could not help clicking on it. I'm glad that I did because it was a very enjoyable read.  
8/22/2010 11:58:43 PM #
Hi. I read a few of your other posts and i wanted to say thank you for the informative posts.
8/24/2010 12:29:30 PM #
Our shop offers many famous Franck Muller Replica Watches. for example:Franck Muller The Crazy Hour Replica Watches,Franck Muller Crazy Hour Color Dreams Black, They are all wrist watches and you can buy one for your father to show your love ,moreover. no one could know it a replica one.
8/25/2010 12:27:37 AM #
Howdy, i read your weblog occasionally and i personal a comparable one and i was just wondering if you get lots of spam comments? If so how do you avoid it, any plugin or anything you can advise? I get so much lately it's driving me mad so any assistance is really much appreciated.
8/26/2010 2:36:17 AM #
Howdy, i read your blog occasionally and i personal a comparable one and i had been just wondering should you get lots of spam comments? If so how do you avoid it, any plugin or anything you are able to advise? I get so much lately it's driving me mad so any assistance is really much appreciated.
8/27/2010 8:40:55 PM #
Great, I have already bookmarked your this page...Now I don’t have enough time for read but by reading beginning part I must say...it was a positive start .. Would love to read further too...Thanks for great post!
8/27/2010 10:46:05 PM #
I was looking for this the other day. i dont usually post in forums but i wanted to say thank you!
8/29/2010 1:36:13 AM #
I just read through the entire article of yours and it was quite good. This is a great article thanks for sharing this informative information. I will visit your blog regularly for some latest post.
8/29/2010 9:40:57 PM #
sagabindara salutes you all out there
8/30/2010 5:15:30 AM #
Thank you for taking this opportunity to discuss  this, I feel  fervently  about it and I benefit from learning about this subject.  Please, as you gain knowledge, please add to  this blog with new information.  I have found it enormously useful.
9/1/2010 5:54:28 PM #
Watsup,    I totally agree with your article. My computer run so much faster with it done. It's hard to believe how much such a small thing can make such a big differance. When I first read about it I was hesitant about trying it out, but thanks to your help my worries was put to bed. donkishire (germany for thanks)
9/5/2010 6:54:23 PM #
I was wondering if you would be interested in becoming a guest poster on my blog? and in exchange you could put a link the post? Please let me know when you get a chance and I will send you my contact details - thanks.  Anyway, in my language, there are not much good source like this.
9/5/2010 7:29:37 PM #
I was wondering if you would be interested in becoming a guest poster on my blog? and in exchange you could put a link the post? Please let me know when you get a chance and I will send you my contact details - thanks.  Anyway, in my language, there are not much good source like this.
9/6/2010 3:27:20 AM #
Considerably, the article is actually the best on this valuable topic. I harmonise with your conclusions and will thirstily look forward to your upcoming updates. Just saying thanks will not just be sufficient, for the extraordinary clarity in your writing. I will at once grab your rss feed to stay abreast of any updates. Gratifying work and much success in your  business endeavors!
9/7/2010 2:01:11 AM #
Thank you for such a informative blog. Where else could anyone get this kind of info written in such an incite full way? I have a presentation that I am presently working on, and I have been on the look out for such info.
9/7/2010 12:35:05 PM #
Excellent post. I want to thank you for this informative read; I really appreciate sharing this great post. Keep up your work…
9/7/2010 12:35:14 PM #
Excellent post. I want to thank you for this informative read; I really appreciate sharing this great post. Keep up your work…
9/9/2010 6:53:37 AM #
Thanks for posting this. I really appreciate it.
9/9/2010 8:36:31 AM #
I think this an informative and interesting article. I think it is very useful and knowledgeable, happy to see some people still have interest in this. I would like to thank you for the efforts you have made in writing this article. I am wish the same best work from you in the future as well kind regards

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading