0 Comments

When you are viewing a post while logged in as Admin, you click Edit and turn the page into editable content.

editPost =function () {
txtTitle.attr('contentEditable',true);
txtContent.wysiwyg({ hotKeys: {}, activeToolbarClass:"active" });
txtContent.css({ minHeight:"400px" });
txtContent.focus();
btnNew.attr("disabled",true);
btnEdit.attr("disabled",true);
btnSave.removeAttr("disabled");
btnCancel.removeAttr("disabled");
chkPublish.removeAttr("disabled");
showCategoriesForEditing();
toggleSourceView();
$("#tools").fadeIn().css("display","inline-block");
}

The resulting HTML you write (in a WYSIWYG mode) is converted into XHTML and posted back to MiniBlog: