Whens submitting a new object, the instructions for how to do markdown
didn't show up until after the object had been saved once.
This turns out to be because the performance optimization to take an
empty string markdown and turn it into an empty string html wrote the
(empty) result to the wrong field, thereby overwriting the instructions.
function _do_update_markdown(obj) {
if (obj.value == '') {
/* Short-circuit the empty field case */
- obj.infospan.innerHTML = '';
+ obj.preview_div.innerHTML = '';
return;
}