   if localStorage[collection]
     for child in $('#collection_form').children()
       if $(child).attr('id') && localStorage["#{collection}:#{$(child).attr('id')}"]?
-        $(child).val(localStorage["#{collection}:#{$(child).attr('id')}"])
+        if $(child).attr('class') == 'pagedown_container'
+          $(child).find('.wmd-input').val(localStorage["#{collection}:#{$(child).attr('id')}"])
+        else
+          $(child).val(localStorage["#{collection}:#{$(child).attr('id')}"])
 
 clear_collection_form = ->
   collection = $('#collection_select').val()

          console.log data
          if callback?
            callback(data)
  
construct_latest_urn = (callback) ->
  collection = $('#collection_select').val()
  fusion_tables_query "SELECT ROWID FROM #{collection}", (data) =>

    for child in $('#collection_form').children()
      if $(child).attr('id') && ($(child).attr('type') != 'hidden')
        column_names.push fusion_tables_escape($(child).attr('id'))
        row_values.push fusion_tables_escape(get_value_for_form_input(child))
    fusion_tables_query "INSERT INTO #{collection} (#{column_names.join(', ')}) VALUES (#{row_values.join(', ')})", (data) ->
      clear_collection_form()
      $('#collection_form').after $('<div>').attr('class','alert alert-success').attr('id','submit_success').append('Submitted.')
