mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 18:01:36 +03:00
57b318de52
refs https://github.com/TryGhost/Team/issues/1209 - adds new `KoenigHtmlTextarea` component for entering multi line html in cards - updates accordion card to use html text area component
37 lines
1002 B
Handlebars
37 lines
1002 B
Handlebars
<div class="koenig-basic-html-textarea__editor-wrappper" style="cursor: text">
|
|
<div
|
|
class="koenig-basic-html-textarea__editor"
|
|
data-kg="editor"
|
|
data-kg-allow-clickthrough
|
|
data-placeholder={{this.placeholder}}
|
|
></div>
|
|
</div>
|
|
|
|
<KoenigToolbar
|
|
@basicOnly={{true}}
|
|
@editor={{this.editor}}
|
|
@editorRange={{this.selectedRange}}
|
|
@activeMarkupTagNames={{this.activeMarkupTagNames}}
|
|
@toggleMarkup={{action "toggleMarkup"}}
|
|
@editLink={{action "editLink"}}
|
|
/>
|
|
|
|
{{!-- pop-up link hover toolbar --}}
|
|
<KoenigLinkToolbar
|
|
@editor={{this.editor}}
|
|
@container={{this.element}}
|
|
@linkRange={{this.linkRange}}
|
|
@selectedRange={{this.selectedRange}}
|
|
@editLink={{action "editLink"}}
|
|
/>
|
|
|
|
{{!-- pop-up link editing toolbar --}}
|
|
{{#if this.linkRange}}
|
|
<KoenigLinkInput
|
|
@editor={{this.editor}}
|
|
@linkRange={{this.linkRange}}
|
|
@selectedRange={{this.selectedRange}}
|
|
@cancel={{action "cancelEditLink"}}
|
|
/>
|
|
{{/if}}
|