Home arrow HTML arrow Building a WYSIWYG HTML Editor Part 1/2
HTML

Building a WYSIWYG HTML Editor Part 1/2


Whether you're creating your own personal web site, a site for a medium sized business, or a site for a company intranet, the content management system (CMS) is one of the most important aspects of the overall design. In this article Mitchell shows us how to build an awesome browser based HTML editor using only HTML and JavaScript. This article is a must read!

Author Info:
By: Mitchell Harper
Rating: 5 stars5 stars5 stars5 stars5 stars / 377
February 27, 2002
TABLE OF CONTENTS:
  1. · Building a WYSIWYG HTML Editor Part 1/2
  2. · Why a WYSIWYG editor
  3. · execCommand examples
  4. · Building our HTML editor
  5. · Building our HTML editor (contd.)
  6. · Building our HTML editor (contd.)
  7. · Conclusion

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Building a WYSIWYG HTML Editor Part 1/2
(Page 1 of 7 )

If you're designing a web site that will constantly have new products or company news added to it, then you can be pretty sure that the person from the company who will be adding that content will have at best beginners knowledge of HTML.

So how do we overcome this problem? Well, we could offer to do the updates ourself, but that's pointless really: we're web developers, not content updaters for company web sites. We could offer some form of offline template that the company can edit and upload, but this is neither time effective nor streamlined. One last thing we could do is provide the company with a browser based WYSIWYG HTML editor similar to FrontPage or Dreamweaver.

If you're thinking that this is out of your league as a developer, then think again. Internet Explorer 5 and later supports a set of commands to facilitate complete browser based content creation. With just a couple of lines of JavaScript, we can create a truly mind-blowing WYSIWYG content editor in a matter of minutes, and that's what I'm doing to show you how to do today.

To test the samples in this article, you should have preferably IE5 or IE6 (patched) installed on your PC. You don't need any fancy server side programming experience, just a bit of HTML and JavaScript. I will teach you the commands we will be using as we progress.
blog comments powered by Disqus
HTML ARTICLES

- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5
- BBC Adopts HTML 5, Mozilla Addresses Issues
- Advanced Sticky Footers in HTML and CSS
- HTML and CSS Sticky Footers
- Strategy Analytics Predicts HTML5 Phones to ...
- HTML5 Guidelines for Web Developers
- Learning HTML5 Game Programming
- More Engaging CSS3 and HTML Background Effec...
- Engaging HTML and CSS3 Background Effects
- More Web Columns with CSS3 and HTML
- Columns with CSS3 and HTML
- Creating Inline-Block HTML Elements with CSS
- Drag and Drop in HTML5: Parsing Local Files

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 5 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials