import type { RawEditorOptions } from 'tinymce';

export const tinymceApiKey = import.meta.env.VITE_TINYMCE_API_KEY ?? '';

export const editorToolbarOptions: RawEditorOptions = {
    height: 320,
    plugins: [
        'advlist',
        'autolink',
        'link',
        'lists',
        'charmap',
        'preview',
        'anchor',
        'searchreplace',
        'wordcount',
        'visualblocks',
        'code',
        'fullscreen',
        'insertdatetime',
        'table',
        'help',
    ],
    toolbar:
        'undo redo | styles | bold italic | alignleft aligncenter alignright alignjustify | ' +
        'bullist numlist outdent indent | link | removeformat | code fullscreen help',
    menubar: 'edit view insert format tools table help',
    extended_valid_elements: 'span',
    branding: false,
    promotion: false,
};
