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-12-30 05:11:24 +03:00
|
|
|
{{gh-trim-focus-input type="text" id="entry-title" placeholder="Your Post Title" value=model.titleScratch
|
2014-10-18 15:16:43 +04:00
|
|
|
tabindex="1" focus=shouldFocusTitle}}
|
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">
|
2015-03-13 12:39:28 +03:00
|
|
|
{{gh-ed-editor classNames="markdown-editor js-markdown-editor" tabindex="1" spellcheck="true" value=model.scratch
|
|
|
|
scrollInfo=view.editorScrollInfo
|
|
|
|
setEditor="setEditor" openModal="openModal" onChange="autoSave"
|
2014-11-16 03:05:28 +03:00
|
|
|
focus=shouldFocusEditor focusCursorAtEnd=model.isDirty onFocusIn="autoSaveNew"}}
|
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-12-30 05:11:24 +03:00
|
|
|
<small>Preview <span class="entry-word-count js-entry-word-count">{{gh-count-words model.scratch}}</span></small>
|
2014-08-05 13:51:39 +04:00
|
|
|
</header>
|
2014-09-03 07:42:03 +04:00
|
|
|
<section class="entry-preview-content js-entry-preview-content">
|
2015-03-13 12:39:28 +03:00
|
|
|
{{gh-ed-preview classNames="rendered-markdown js-rendered-markdown"
|
|
|
|
markdown=model.scratch scrollPosition=view.scrollPosition height=view.height
|
|
|
|
uploadStarted="disableEditor" uploadFinished="enableEditor" 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>
|