mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
9a0b72071d
refs https://github.com/TryGhost/Ghost/issues/8106, https://github.com/TryGhost/Ghost/issues/7429, requires https://github.com/TryGhost/Ghost/pull/8137 -Adds new "card" menus - Navigation with keyboard in both axis. - Search with keyboard in both menus. - Adds a "+" Menu for cards - Adds a "/" Menu for cards - if the block has content and it becomes a markdown or HTML Embed card then the content is included into the card. - Image and HR cards appear below the current section - Adds new toolbar with both inline and block styling. - Adds a new 'divider' card.
17 lines
646 B
Handlebars
17 lines
646 B
Handlebars
{{#if showButton}}
|
|
<button id="gh-cardmenu-button" {{action "openMenu"}}>+</button>
|
|
{{/if}}
|
|
{{#if isOpen}}
|
|
<div class="gh-cardmenu">
|
|
<div class="gh-cardmenu-search">
|
|
{{inline-svg "search.svg"}}
|
|
{{gh-input query class="gh-input gh-cardmenu-search-input" placeholder="Search for a card..." type="text" update=(action (mut query)) key-press=(action "updateSelection")}}
|
|
</div>
|
|
<div class="gh-cardmenu-divider">
|
|
Primary
|
|
</div>
|
|
{{#each toolbar as |tool index|}}
|
|
{{koenig-menu-item tool=tool editor=editor range=range selected=tool.selected clicked=(action "closeMenu")}}
|
|
{{/each}}
|
|
</div>
|
|
{{/if}} |