Commit 8589dd50 authored by Enrique Alcántara's avatar Enrique Alcántara

Merge branch '220616-group-code-icons-in-toolbar' into 'master'

Group toolbar code icons

Closes #220616

See merge request gitlab-org/gitlab!34006
parents 58560843 c6cdd1f8
...@@ -14,7 +14,6 @@ const TOOLBAR_ITEM_CONFIGS = [ ...@@ -14,7 +14,6 @@ const TOOLBAR_ITEM_CONFIGS = [
{ isDivider: true }, { isDivider: true },
{ icon: 'quote', command: 'Blockquote', tooltip: __('Insert a quote') }, { icon: 'quote', command: 'Blockquote', tooltip: __('Insert a quote') },
{ icon: 'link', event: 'openPopupAddLink', tooltip: __('Add a link') }, { icon: 'link', event: 'openPopupAddLink', tooltip: __('Add a link') },
{ icon: 'doc-code', command: 'CodeBlock', tooltip: __('Insert a code block') },
{ isDivider: true }, { isDivider: true },
{ icon: 'list-bulleted', command: 'UL', tooltip: __('Add a bullet list') }, { icon: 'list-bulleted', command: 'UL', tooltip: __('Add a bullet list') },
{ icon: 'list-numbered', command: 'OL', tooltip: __('Add a numbered list') }, { icon: 'list-numbered', command: 'OL', tooltip: __('Add a numbered list') },
...@@ -27,6 +26,7 @@ const TOOLBAR_ITEM_CONFIGS = [ ...@@ -27,6 +26,7 @@ const TOOLBAR_ITEM_CONFIGS = [
{ icon: 'doc-image', event: CUSTOM_EVENTS.openAddImageModal, tooltip: __('Insert an image') }, { icon: 'doc-image', event: CUSTOM_EVENTS.openAddImageModal, tooltip: __('Insert an image') },
{ isDivider: true }, { isDivider: true },
{ icon: 'code', command: 'Code', tooltip: __('Insert inline code') }, { icon: 'code', command: 'Code', tooltip: __('Insert inline code') },
{ icon: 'doc-code', command: 'CodeBlock', tooltip: __('Insert a code block') },
]; ];
export const EDITOR_OPTIONS = { export const EDITOR_OPTIONS = {
......
---
title: Update Static Site Editor toolbar to group inline-code and code-block buttons together
merge_request: 34006
author:
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment