Ghost/ghost/admin/lib/koenig-editor/addon/components/koenig-basic-html-input.hbs
Kevin Ansfield 79d14082c2 🎨 Enabled use of Grammarly extension in the editor
no issue

- Grammarly have indicated their extension is now compatible with the underlying editor technology used in Ghost
- removed html attributes that explicitly disabled the extension on our editor fields
2021-06-03 13:22:07 +01:00

36 lines
995 B
Handlebars

<div class="koenig-basic-html-input__editor-wrappper" style="cursor: text">
<div
class="koenig-basic-html-input__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}}