import { defineStore } from "pinia";

export const useEditorStore = defineStore({
  id: "editorStore",
  state: () => ({
    apiKey: "",
    toolbar:
      "undo redo styles | bold italic backcolor link image alignleft aligncenter alignright alignjustify bullist numlist outdent indent removeformat fullscreen",
    plugins:
      "advlist autolink lists link image charmap print preview anchor searchreplace visualblocks code fullscreen media table paste code wordcount",
    fileList: [],
    init: { entity_encoding: "raw", promotion: false, language: "vi" },
  }),
});
