Ghost/ghost/admin/lib/koenig-editor/addon/templates/components/koenig-basic-html-input.hbs
Kevin Ansfield fe13a46273 Koenig - Allow clicks on rich-text captions to place cursor immediately
refs https://github.com/TryGhost/Ghost/issues/9724
- add a `data-kg-allow-clickthrough` attribute so that it's possible to explicitly allow non-input elements to be clicked immediately when clicking on a card
2018-08-08 15:48:31 +01:00

37 lines
903 B
Handlebars

<div class="koenig-basic-html-input__editor-wrappper" style="cursor: text">
<div
class="koenig-basic-html-input__editor"
data-gramm="false"
data-kg="editor"
data-kg-allow-clickthrough
data-placeholder={{placeholder}}
></div>
</div>
{{koenig-toolbar
basicOnly=true
editor=editor
editorRange=selectedRange
activeMarkupTagNames=activeMarkupTagNames
toggleMarkup=(action "toggleMarkup")
editLink=(action "editLink")
}}
{{!-- pop-up link hover toolbar --}}
{{koenig-link-toolbar
editor=editor
container=element
linkRange=linkRange
selectedRange=selectedRange
editLink=(action "editLink")
}}
{{!-- pop-up link editing toolbar --}}
{{#if linkRange}}
{{koenig-link-input
editor=editor
linkRange=linkRange
selectedRange=selectedRange
cancel=(action "cancelEditLink")
}}
{{/if}}