Ghost/ghost/admin/lib/koenig-editor/addon/components
Kevin Ansfield 1e639c2504 Added snippets feature to editor
no issue

Snippets are pieces of saved content that are given a name and made available for easy and quick insertion when editing posts or pages. They can contain rich text, cards, or a combination of both making it faster and less error-prone to re-use pieces of content across multiple posts. Snippet length is not constrained meaning they can also stand in as post type templates alleviating the need to keep drafts around as templates and copy/pasting each time they are used.

Feature changes:
- added "create snippet" icon to selection and card toolbars
- added "Snippets" section to the plus and slash menus
  - for the slash menu, continuing to type after opening the menu will filter by snippet name
- all saved snippets are available to all staff users
- snippets can be deleted by clicking the trash can icon when hovering the mouse over a snippet entry in the plus or slash menus
- creation/deletion of snippets is available to staff users with the owner, admin, or editor role

This commit:
- removed developer experiments guard around snippet UI
2020-10-27 15:01:35 +00:00
..
kg-action-bar.hbs Co-located component template files 2020-05-18 13:14:08 +01:00
kg-action-bar.js Co-located component template files 2020-05-18 13:14:08 +01:00
koenig-alt-input.hbs Fixed image caption design bugs in Koenig 2020-08-27 15:21:11 +02:00
koenig-alt-input.js Co-located component template files 2020-05-18 13:14:08 +01:00
koenig-basic-html-input.hbs Co-located component template files 2020-05-18 13:14:08 +01:00
koenig-basic-html-input.js Co-located component template files 2020-05-18 13:14:08 +01:00
koenig-caption-input.hbs Fixed image caption design bugs in Koenig 2020-08-27 15:21:11 +02:00
koenig-caption-input.js Co-located component template files 2020-05-18 13:14:08 +01:00
koenig-card-bookmark.hbs Prevented card toolbar showing for embed/bookmark cards in input state 2020-10-21 18:27:26 +01:00
koenig-card-bookmark.js Added display of server-side error message when bookmark request fails 2020-06-08 17:40:33 +01:00
koenig-card-code.hbs Added "Create snippet" toolbar icon when cards are selected 2020-10-21 12:16:04 +01:00
koenig-card-code.js Co-located component template files 2020-05-18 13:14:08 +01:00
koenig-card-email.hbs Added "Create snippet" toolbar icon when cards are selected 2020-10-21 12:16:04 +01:00
koenig-card-email.js Co-located component template files 2020-05-18 13:14:08 +01:00
koenig-card-embed.hbs Prevented card toolbar showing for embed/bookmark cards in input state 2020-10-21 18:27:26 +01:00
koenig-card-embed.js Resolved "already declared in upper scope" linting warnings 2020-10-05 09:56:21 +01:00
koenig-card-gallery.hbs Added "Create snippet" toolbar icon when cards are selected 2020-10-21 12:16:04 +01:00
koenig-card-gallery.js Co-located component template files 2020-05-18 13:14:08 +01:00
koenig-card-hr.hbs Co-located component template files 2020-05-18 13:14:08 +01:00
koenig-card-hr.js Co-located component template files 2020-05-18 13:14:08 +01:00
koenig-card-html.hbs Added "Create snippet" toolbar icon when cards are selected 2020-10-21 12:16:04 +01:00
koenig-card-html.js Co-located component template files 2020-05-18 13:14:08 +01:00
koenig-card-image.hbs Added "Create snippet" toolbar icon when cards are selected 2020-10-21 12:16:04 +01:00
koenig-card-image.js Updated image card to store original width/height in payload 2020-06-15 13:16:37 +01:00
koenig-card-markdown.hbs Added "Create snippet" toolbar icon when cards are selected 2020-10-21 12:16:04 +01:00
koenig-card-markdown.js Update dependency ember-in-viewport to v3.8.0 2020-10-01 10:06:53 +01:00
koenig-card.hbs Added snippets feature to editor 2020-10-27 15:01:35 +00:00
koenig-card.js Prevented card toolbar showing for embed/bookmark cards in input state 2020-10-21 18:27:26 +01:00
koenig-editor.hbs Hid snippet management UI from staff users without permissions 2020-10-27 14:42:59 +00:00
koenig-editor.js Hid snippet management UI from staff users without permissions 2020-10-27 14:42:59 +00:00
koenig-link-input.hbs Implemented first iteration of content snippets 2020-10-15 18:03:35 +01:00
koenig-link-input.js Implemented first iteration of content snippets 2020-10-15 18:03:35 +01:00
koenig-link-toolbar.hbs Co-located component template files 2020-05-18 13:14:08 +01:00
koenig-link-toolbar.js Co-located component template files 2020-05-18 13:14:08 +01:00
koenig-menu-content.hbs Truncated long card menu labels 2020-10-27 14:48:39 +00:00
koenig-plus-menu.hbs Added delete button with confirmation to snippets in card menus 2020-10-26 17:09:39 +00:00
koenig-plus-menu.js Added snippets feature to editor 2020-10-27 15:01:35 +00:00
koenig-slash-menu.hbs Implemented first iteration of content snippets 2020-10-15 18:03:35 +01:00
koenig-slash-menu.js Added snippets feature to editor 2020-10-27 15:01:35 +00:00
koenig-snippet-input.hbs Renamed snippet.title to snippet.name for consistency 2020-10-16 10:15:07 +01:00
koenig-snippet-input.js Added "Create snippet" toolbar icon when cards are selected 2020-10-21 12:16:04 +01:00
koenig-text-replacement-html-input.hbs Co-located component template files 2020-05-18 13:14:08 +01:00
koenig-text-replacement-html-input.js Co-located component template files 2020-05-18 13:14:08 +01:00
koenig-toolbar.hbs Added snippets feature to editor 2020-10-27 15:01:35 +00:00
koenig-toolbar.js Co-located component template files 2020-05-18 13:14:08 +01:00