All files / src/components/common/CustomEditor toolbar.tsx

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69                        4x                                                                                                                
import bold from "@assets/svgIcons/editor-bold.svg";
import italic from "@assets/svgIcons/editor-italic.svg";
import underlined from "@assets/svgIcons/editor-underlined.svg";
import strikethrough from "@assets/svgIcons/editor-strikethrough.svg";
import left from "@assets/svgIcons/editor-left.svg";
import center from "@assets/svgIcons/editor-center.svg";
import right from "@assets/svgIcons/editor-right.svg";
import list from "@assets/svgIcons/editor-list.svg";
import link from "@assets/svgIcons/editor-link.svg";
import emoji from "@assets/svgIcons/editor-emoji.svg";
import image from "@assets/svgIcons/editor-image.svg";
 
export const toolbar = {
  inline: {
    bold: {
      icon: bold,
      className: "demo-option-custom",
    },
    italic: { icon: italic, className: "demo-option-custom" },
    underline: { icon: underlined, className: "demo-option-custom" },
    strikethrough: {
      icon: strikethrough,
      className: "demo-option-custom",
    },
    monospace: { className: "editor-tool-hidden" },
    superscript: { className: "editor-tool-hidden" },
    subscript: { className: "editor-tool-hidden" },
  },
  blockType: {
    className: "demo-option-custom-wide",
    dropdownClassName: "demo-dropdown-custom",
  },
  fontSize: { className: "demo-option-custom-medium" },
  list: {
    unordered: { icon: list, className: "demo-option-custom" },
    ordered: { className: "editor-tool-hidden" },
    indent: { className: "editor-tool-hidden" },
    outdent: { className: "editor-tool-hidden" },
  },
  textAlign: {
    left: { icon: left, className: "demo-option-custom" },
    center: { icon: center, className: "demo-option-custom" },
    right: { icon: right, className: "demo-option-custom" },
    justify: { className: "editor-tool-hidden" },
  },
  fontFamily: {
    className: "demo-option-custom-wide",
    dropdownClassName: "demo-dropdown-custom",
  },
  colorPicker: {
    className: "editor-tool-hidden",
    popupClassName: "demo-popup-custom",
  },
  link: {
    popupClassName: "demo-popup-custom",
    link: { icon: link, className: "demo-option-custom" },
  },
  emoji: {
    icon: emoji,
    className: "demo-option-custom",
    popupClassName: "demo-popup-custom",
  },
  image: {
    icon: image,
    className: "demo-option-custom",
    popupClassName: "demo-popup-custom",
  },
};