2014-08-05 13:51:39 +04:00
<header class="page-header">
2014-09-01 20:45:06 +04:00
<button class="menu-button js-menu-button" {{ action "toggleGlobalMobileNav" }} ><span class="sr-only">Menu</span></button>
2014-08-16 20:40:52 +04:00
<h2 class="page-title">Editor</h2>
2014-05-31 22:32:22 +04:00
</header>
2014-03-02 18:30:35 +04:00
2014-08-05 13:51:39 +04:00
<div class="page-content">
<header>
<section class="box entry-title">
2014-10-18 00:57:10 +04:00
{{ gh-trim-focus-input type = "text" id = "entry-title" placeholder = "Your Post Title" value = titleScratch tabindex = "1" focus = shouldFocusTitle onFocusOut = "autoSaveOnce" }}
2014-08-05 13:51:39 +04:00
</section>
2014-05-31 22:32:22 +04:00
</header>
2014-08-05 13:51:39 +04:00
2014-09-03 07:42:03 +04:00
<section {{ bind-attr class = ":entry-markdown :js-entry-markdown isPreview::active" }} >
2014-08-20 21:32:51 +04:00
<header {{ action "togglePreview" false }} class="floatingheader">
2014-08-05 13:51:39 +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-10-08 18:53:20 +04:00
{{ gh-codemirror value = scratch scrollInfo = view .markdownScrollInfo
setCodeMirror="setCodeMirror"
openModal="openModal"
typingPause="autoSave"}}
2014-08-05 13:51:39 +04:00
</section>
2014-03-02 18:30:35 +04:00
</section>
2014-09-03 07:42:03 +04:00
<section {{ bind-attr class = ":entry-preview :js-entry-preview isPreview:active" }} >
2014-08-20 21:32:51 +04:00
<header {{ action "togglePreview" true }} class="floatingheader">
2014-08-05 13:51:39 +04:00
<small>Preview <span class="entry-word-count js-entry-word-count"> {{ gh-count-words scratch }} </span></small>
</header>
2014-09-03 07:42:03 +04:00
<section class="entry-preview-content js-entry-preview-content">
{{ gh-markdown classNames = "rendered-markdown js-rendered-markdown"
markdown=scratch scrollPosition=view.scrollPosition
2014-08-15 00:36:33 +04:00
uploadStarted="disableCodeMirror" uploadFinished="enableCodeMirror" uploadSuccess="handleImgUpload"}}
2014-08-05 13:51:39 +04:00
</section>
2014-03-02 18:30:35 +04:00
</section>
2014-08-05 13:51:39 +04:00
{{ partial "publish-bar" }}
2014-09-03 07:42:03 +04:00
</div>