At its simplest, all you do is add the contenteditable attribute to any tag. You might be suprised at how easy it is to create "editable" content. And now it looks like it will be included in the HTML5 specification (which is currently in draft status at the time of writing).Īnyway, let's look at how the contenteditable attribute works. But with HTML5's introduction of the contenteditable global attribute, creating a WYSIWYG editor can be much simpler.Īctually, I should mention that the contenteditable attribute has been supported by most major browsers for quite some time. Typically, online editors and content management systems have required some pretty complex JavaScript programming to get things working as a WYSIWYG editor. With these "WYSIWYG" editors, clicking the content makes it "editable". These are the systems where, you can start editing a page simply by clicking anywhere you like in the page. ![]() You may be familiar with content management systems or blog builders that enable inline editing of your content.
0 Comments
Leave a Reply. |