             j = input.indexOf(")")
             if j < i and j != -1
                 i = j
+            if i == -1
+                i = input.length
             html_input = to_html(input.slice(i+1).trim())
             top_input = input.slice(0,i+1)
             div.addClass("sagews-output-html")
             div.html(html_input)
+            if div.text().trim() == CLICK_TO_EDIT
+                div.html('')
+
             last_html = html_input
             ignore_changes = false
 

        else if input.slice(0,3) == '%md'
            # a markdown editor
            editor = 'md'
            to_html   = (code) -> misc_page.markdown_to_html(code).s
            from_html = to_markdown
        else
            editor = undefined

their 900 clients in parallel.

###



CLICK_TO_EDIT = "(click to edit)"

# seconds to wait for synchronized doc editing session, before reporting an error.
# Don't make this too short, since when we open a link to a file in a project that
