1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/app/components
Ryan McCarvill f5fc35fb98 improved card selection behaviour (#608)
Refs: https://github.com/TryGhost/Ghost/issues/8191
Refs: https://github.com/TryGhost/Ghost/issues/8194

Changes the selection behaviour of mobiledoc-cards:
If you navigate to a card with a keyboard or click on the new editor toolbar it "hard selects".
If you click into the body of a card to edit it it "soft selects".

When a card is "hard selected" you can navigate out of the card and to the previous or following blocks within the mobiledoc with the keyboard, you can delete the current card with the backspace or delete button, and you can create a new block following the card with the enter key.

When a card is soft selected it is simply displayed as selected and allows the user to edit content within the card.

New card toolbar:
Allows a user to delete the card, save the card, and "hard select" a card.

New title behaviour:
Pressing the enter key within the title "splits" the title at the cursor point, if multiple characters are selected they are first deleted, and creates a new paragraph at the top of the document with the trailing characters after the split.

gh-cm-editor updates:
Adds an on-focus event to gh-cm-editor
2017-03-30 15:29:08 +01:00
..
gh-search-input 🐛 fix typing a space in search input (#261) 2016-09-14 16:11:41 +01:00
modals show theme warnings/errors when activating a theme (#576) 2017-03-14 08:54:58 -05:00
gh-activating-list-item.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-alert.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-alerts.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-app.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-blog-url.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-cm-editor.js improved card selection behaviour (#608) 2017-03-30 15:29:08 +01:00
gh-content-cover.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-datetime-input.js 🎨 synchronous settings service 2017-03-20 07:43:49 -05:00
gh-dropdown-button.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-dropdown.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-editor-save-button.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-editor-title.js improved card selection behaviour (#608) 2017-03-30 15:29:08 +01:00
gh-error-message.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-feature-flag.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-file-input.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-file-upload.js validate file uploads against "accept" mime-type before uploading (#214) 2016-08-22 05:45:33 -06:00
gh-file-uploader.js various test deprecation cleanup 2017-03-08 18:56:30 +00:00
gh-form-group.js Update package.json details, rename module to ghost-admin 2016-06-03 16:12:54 +01:00
gh-fullscreen-modal.js minor refactors for recent/up-coming deprecations 2017-03-28 18:17:59 +01:00
gh-image-uploader-with-preview.js 🔥 remove URL input option from image upload components 2017-03-03 11:01:55 -06:00
gh-image-uploader.js 🔥 remove URL input option from image upload components 2017-03-03 11:01:55 -06:00
gh-infinite-scroll.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-input.js convert inputs to one-way inputs 2016-06-18 07:44:23 -04:00
gh-loading-spinner.js 🏃 improve navigation responsiveness with loading substates (#495) 2017-01-17 17:44:08 -06:00
gh-main.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-menu-toggle.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-mobile-nav-bar.js Prototype mobile navbar 2017-02-17 12:31:12 -06:00
gh-nav-menu.js Style updates to new app frame for all other screens 2017-02-17 10:14:16 +00:00
gh-navigation.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-navitem-url-input.js Fix new url field focus bug (#194) 2016-08-10 08:31:16 -06:00
gh-navitem.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-notification.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-notifications.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-popover-button.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-popover.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-post-settings-menu.js 🎨 synchronous settings service 2017-03-20 07:43:49 -05:00
gh-posts-list-item.js 🎨 synchronous settings service 2017-03-20 07:43:49 -05:00
gh-profile-image.js minor refactors for recent/up-coming deprecations 2017-03-28 18:17:59 +01:00
gh-search-input.js Update code to match eslint rules 2016-11-14 13:26:00 +00:00
gh-selectize.js Update code to match eslint rules 2016-11-14 13:26:00 +00:00
gh-skip-link.js Update code to match eslint rules 2016-11-14 13:26:00 +00:00
gh-spin-button.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-subscribers-table.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-tab-pane.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-tab.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-tabs-manager.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-tag-settings-form.js minor refactors for recent/up-coming deprecations 2017-03-28 18:17:59 +01:00
gh-tag.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-tags-management-container.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-task-button.js 🎨 refactor signin screen to use ember-concurrency & gh-task-button (#571) 2017-03-09 14:48:54 -07:00
gh-textarea.js convert inputs to one-way inputs 2016-06-18 07:44:23 -04:00
gh-theme-error-li.js show theme warnings/errors when activating a theme (#576) 2017-03-14 08:54:58 -05:00
gh-theme-table.js 🎨 move theme activation to /themes endpoint 2017-03-08 10:46:33 +00:00
gh-timezone-select.js deps: ember@2.8.2 2016-10-07 17:32:30 +01:00
gh-trim-focus-input.js Update ember-one-way-controls to version 2.0.0 🚀 (#475) 2017-01-23 12:03:05 +00:00
gh-upgrade-notification.js Added upgrade notification component to About page. (#102) 2016-07-15 16:58:35 -06:00
gh-url-preview.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00
gh-user-active.js add extra escaping when using htmlSafe on user input (#469) 2017-01-04 08:52:00 -07:00
gh-user-invited.js 🐛 display correct expired/expires text for invites (#550) 2017-02-27 13:11:39 +00:00
gh-validation-status-container.js deps: ember@2.8.2 2016-10-07 17:32:30 +01:00
gh-view-title.js convert remainder of components to use ember-cli-shims (#101) 2016-06-30 19:14:25 +01:00