2014-05-31 22:32:22 +04:00
|
|
|
<header>
|
|
|
|
<section class="box entry-title">
|
2014-08-08 17:30:51 +04:00
|
|
|
{{gh-trim-focus-input type="text" id="entry-title" placeholder="Your Post Title" value=titleScratch tabindex="1" focus=shouldFocusTitle}}
|
2014-05-31 22:32:22 +04:00
|
|
|
</section>
|
|
|
|
</header>
|
2014-03-02 18:30:35 +04:00
|
|
|
|
2014-05-31 22:32:22 +04:00
|
|
|
<section class="entry-markdown active">
|
2014-08-07 17:32:10 +04:00
|
|
|
<header class="floatingheader" id="entry-markdown-header">
|
2014-05-31 22:32:22 +04:00
|
|
|
<small>Markdown</small>
|
|
|
|
<a class="markdown-help" href="" {{action "openModal" "markdown"}}><span class="hidden">What is Markdown?</span></a>
|
|
|
|
</header>
|
|
|
|
<section id="entry-markdown-content" class="entry-markdown-content">
|
2014-06-24 05:17:57 +04:00
|
|
|
{{gh-codemirror value=scratch scrollInfo=view.markdownScrollInfo setCodeMirror="setCodeMirror"}}
|
2014-03-02 18:30:35 +04:00
|
|
|
</section>
|
2014-05-31 22:32:22 +04:00
|
|
|
</section>
|
2014-03-02 18:30:35 +04:00
|
|
|
|
2014-05-31 22:32:22 +04:00
|
|
|
<section class="entry-preview">
|
2014-08-07 17:32:10 +04:00
|
|
|
<header class="floatingheader" id="entry-preview-header">
|
2014-06-06 05:18:03 +04:00
|
|
|
<small>Preview <span class="entry-word-count js-entry-word-count">{{gh-count-words scratch}}</span></small>
|
2014-05-31 22:32:22 +04:00
|
|
|
</header>
|
|
|
|
<section class="entry-preview-content">
|
2014-06-06 05:18:03 +04:00
|
|
|
{{gh-markdown markdown=scratch scrollPosition=view.scrollPosition
|
|
|
|
uploadStarted="disableCodeMirror" uploadFinished="enableCodeMirror" uploadSuccess="handleImgUpload"}}
|
2014-03-02 18:30:35 +04:00
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
|
2014-06-02 00:29:25 +04:00
|
|
|
{{partial "publish-bar"}}
|