import {
  Essentials,
  Bold,
  Italic,
  Paragraph,
  Markdown,
  BlockQuote,
  Heading,
  Link,
  List,
  Emoji,
  Mention,
  Fullscreen,
} from "ckeditor5";
import coreTranslations from "ckeditor5/translations/fr.js";

import "ckeditor5/ckeditor5.css";

import "./index.scss";

export default {
  plugins: [
    Essentials,
    Markdown,
    Bold,
    Italic,
    BlockQuote,
    Heading,
    Link,
    List,
    Paragraph,
    // both Emoji and Mention are required for Emoji feature
    Emoji,
    Mention,
    // to enable fullscreen
    Fullscreen,
  ],
  toolbar: {
    items: [
      "heading",
      "|",
      "bold",
      "italic",
      "link",
      "bulletedList",
      "numberedList",
      "blockQuote",
      "|",
      "emoji",
      "|",
      "undo",
      "redo",
      "|",
      "fullscreen",
    ],
  },
  translations: [coreTranslations],
  licenseKey: "GPL",
};
