mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 00:11:49 +03:00
6658675646
closes #2957 - add FastClick library to Gruntfile.js - add touch-editor to client/assets/lib/ - add mobile-specific utils to util/mobile-utils.js - add codemirror util to set up TouchEditor only if we're really on mobile - change gh-codemirror from having a default action to a named action. prevents Ember.TextArea firing action on change - change gh-codemirror `cm.getDoc().getValue()` to `cm.getValue()` for portability - change codemirror-shortcuts ES6 export/import style - changed ghostimagepreview.js to check for Ember.touchEditor in addition to Ghost.touchEditor
28 lines
1.1 KiB
Handlebars
28 lines
1.1 KiB
Handlebars
<header>
|
|
<section class="box entry-title">
|
|
{{gh-trim-focus-input type="text" id="entry-title" placeholder="Your Post Title" value=title tabindex="1"}}
|
|
</section>
|
|
</header>
|
|
|
|
<section class="entry-markdown active">
|
|
<header class="floatingheader">
|
|
<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">
|
|
{{gh-codemirror value=scratch scrollInfo=view.markdownScrollInfo setCodeMirror="setCodeMirror"}}
|
|
</section>
|
|
</section>
|
|
|
|
<section class="entry-preview">
|
|
<header class="floatingheader">
|
|
<small>Preview <span class="entry-word-count js-entry-word-count">{{gh-count-words scratch}}</span></small>
|
|
</header>
|
|
<section class="entry-preview-content">
|
|
{{gh-markdown markdown=scratch scrollPosition=view.scrollPosition
|
|
uploadStarted="disableCodeMirror" uploadFinished="enableCodeMirror" uploadSuccess="handleImgUpload"}}
|
|
</section>
|
|
</section>
|
|
|
|
{{partial "publish-bar"}}
|