Search This Blog

2009-08-20

Enabling Rich Text Editing in your web page...

Midas Specification
Given a document, you can add the attribute "designMode" and set it to "on" to get an editable document. For example, in JavaScript, if you have an iframe with an id of 'edit', you can get its contentDocument and set designMode to "on" like this:
document.getElementById("edit").contentDocument.designMode="on";