           # 触っているところより前が書き換わると維持されないという…
           () =>
             editor.setSelectionRange(caretStart, caretEnd)
-          @contentUpdateFromMarkdown
+         @contentUpdateFromMarkdown data.markdown
     @syncMarkdownFromServer()
 
   sendMarkdown: (markdown)->

        }, [
          $ 'textarea', {
            ref:'editor'
            onChange: @contentUpdateFromMarkdown
            style: {height: '100%', width: '100%', border: 0, outline: 0, fontSize: '14px', padding: '5px', overflow: 'auto', fontFamily:'Consolas, Menlo, monospace', resize: 'none', background: 'transparent'}
            value: @state.markdown
          }

$ = React.createElement

Editor = React.createClass
  contentUpdateFromMarkdown: (markdown)->
    @setState
      markdown: markdown
    try
      content = md2react markdown,
        gfm: true
        breaks: true
        tables: true
