Skip to content

Commit

Permalink
#6511 : Update Editor Component UI - Toolbar Links, Code, and Blockqu…
Browse files Browse the repository at this point in the history
…otes (#6603)

* update icons for blockquotes, links, and code blocks

* use phosphor icons per design update
  • Loading branch information
Miaplacidus authored Feb 7, 2024
1 parent b0078f0 commit 2ffaec7
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
Code,
Image,
LinkSimple,
Link,
ListBullets,
ListChecks,
ListNumbers,
Expand All @@ -14,14 +14,12 @@ import {
TextStrikethrough,
} from '@phosphor-icons/react';
import clsx from 'clsx';
import 'components/react_quill/react_quill_editor.scss';
import { DeltaStatic } from 'quill';
import React, { MutableRefObject, useMemo } from 'react';
import ReactQuill from 'react-quill';
import { SerializableDeltaStatic, renderToolbarIcon } from './utils';

import 'components/react_quill/react_quill_editor.scss';

import { CWIconButton } from 'views/components/component_kit/cw_icon_button';
import { SerializableDeltaStatic, renderToolbarIcon } from './utils';

const quillIcons = ReactQuill.Quill.import('ui/icons');

Expand All @@ -34,9 +32,9 @@ Object.assign(quillIcons, {
bold: renderToolbarIcon(TextB),
italic: renderToolbarIcon(TextItalic),
strike: renderToolbarIcon(TextStrikethrough),
link: renderToolbarIcon(LinkSimple),
link: renderToolbarIcon(Link),
'code-block': renderToolbarIcon(Code),
blockquote: renderToolbarIcon(Quotes, { weight: 'fill' }),
blockquote: renderToolbarIcon(Quotes),
image: renderToolbarIcon(Image),
list: {
ordered: renderToolbarIcon(ListNumbers),
Expand Down

0 comments on commit 2ffaec7

Please sign in to comment.