<?php

declare(strict_types=1);

return [
    'version' => [
        'tiny' => '8.0.2',
        'language' => [
            // https://cdn.jsdelivr.net/npm/tinymce-i18n@latest/
            'version' => '25.8.4',
            'package' => 'langs8',
        ],
        'licence_key' => env('TINY_LICENSE_KEY', 'no-api-key'),
    ],
    'provider' => 'cloud', // cloud|vendor
    // 'direction' => 'rtl',

    /**
     * change darkMode: 'auto'|'force'|'class'|'media'|false|'custom'.
     */
    'darkMode' => 'auto',

    /** cutsom */
    'skins' => [
        // oxide, oxide-dark, tinymce-5, tinymce-5-dark
        'ui' => 'oxide',

        // dark, default, document, tinymce-5, tinymce-5-dark, writer
        'content' => 'default',
    ],

    'profiles' => [
        'default' => [
            'plugins'          => 'accordion autoresize codesample directionality advlist link image lists preview pagebreak searchreplace wordcount code fullscreen insertdatetime media table emoticons',
            'toolbar'          => 'undo redo removeformat | fontfamily fontsize fontsizeinput font_size_formats styles | bold italic underline | rtl ltr | alignjustify alignleft aligncenter alignright | numlist bullist outdent indent | forecolor backcolor | blockquote table toc hr | image link media codesample emoticons | wordcount fullscreen',
            'upload_directory' => null,
        ],

        'simple'  => [
            'plugins'          => 'autoresize directionality emoticons link wordcount',
            'toolbar'          => 'removeformat | bold italic | rtl ltr | numlist bullist | link emoticons',
            'upload_directory' => null,
        ],

        'minimal' => [
            'plugins'          => 'link wordcount',
            'toolbar'          => 'bold italic link numlist bullist',
            'upload_directory' => null,
        ],

        'full'    => [
            'plugins'          => 'a11ychecker advcode advlist advtable anchor autocorrect autolink autoresize autosave casechange charmap checklist code codesample directionality editimage emoticons export footnotes formatpainter fullscreen help image importcss inlinecss insertdatetime link linkchecker lists media mediaembed mentions mergetags nonbreaking pagebreak pageembed permanentpen powerpaste preview quickbars save searchreplace table tableofcontents template tinycomments tinydrive tinymcespellchecker typography visualblocks visualchars wordcount',
            'toolbar'          => 'undo redo | restore drafts | cut copy paste pastetext | preview | find replace | a11ycheck spellcheckdialog | addcomment showcomments | insertfile image media pageembed template codesample inserttable | autolink link linkchecker anchor | mergetags mentions quicklink quickemail | searchreplace bullist numlist | outdent indent | blockquote | alignleft aligncenter alignright alignjustify | lineheight | forecolor backcolor | fontselect | fontsizeselect formatselect | bold italic underline strikethrough | superscript subscript | code codesample | charmap | visualaid visualchars visualblocks | fullscreen | mediaembed | table tabledelete tableprops tablerowprops tablecellprops tablecaption tablecell | tableinsertrowbefore tableinsertrowafter tableinsertcolbefore tableinsertcolafter | tablemergecells tableinsertdialog tablecellmenu | toc | footnotes | formatpainter pagebreak nonbreaking anchor | insertdatetime | typography | subscript superscript | hr | subscript superscript | clearformatting | removeformat | styles',
            'upload_directory' => null,
            'custom_configs' => [
                'toolbar_mode' => 'wrap',
                'relative_urls' => false,
                'remove_script_host' => false,
                'document_base_url' => 'https://mortezajafari.ir/',
                'convert_urls' => false,
                'height' => 800,
                'menubar' => 'file edit view insert format tools table help',
                'branding' => false,
                'powerpaste_word_import' => 'clean',
                'powerpaste_html_import' => 'clean',
                'ai_assistant' => false, // if available in version
                'autosave_interval' => '30s',
                'autosave_prefix' => '{path}{query}-{id}-',
                'autosave_restore_when_empty' => false,
                'autosave_retention' => '2m',
                'image_advtab' => true,
                'image_caption' => true,
                'importcss_append' => true,
                'link_context_toolbar' => true,
                'link_list' => [],
                'media_live_embeds' => true,
                'quickbars_selection_toolbar' => 'bold italic | quicklink h2 h3 blockquote quickimage | visualchars | fullscreen',
                'quickbars_insert_toolbar' => 'quicklink quickimage quicktable',
                'quickbars_image_toolbar' => 'alignleft aligncenter alignright | rotateleft rotateright | flipv fliph | editimage imageoptions',
                'table_advtab' => true,
                'table_cell_advtab' => true,
                'table_copy_paste_row_to_clipboard' => true,
                'table_drag_row_column' => true,
                'table_appearance_options' => true,
                'table_responsive' => true,
                'table_row_advtab' => true,
                'table_toolbar' => 'tableprops tabledelete | tableinsertrowbefore tableinsertrowafter | tableinsertcolbefore tableinsertcolafter | tablemergecells tableunmergecells | tablerowprops tablecellprops',
                'templates' => [],
                'template_cdate_format' => '[Date Created (CDATE): %m/%d/%Y : %H:%M:%S]',
                'template_mdate_format' => '[Date Modified (MDATE): %m/%d/%Y : %H:%M:%S]',
                'word_import' => 'clean',
                'a11y_advanced_options' => true,
                'tinydrive_token_provider' => 'url_to_your_token_provider',
                'tinydrive_dropbox_app_key' => '',
                'tinydrive_google_drive_key' => '',
                'tinydrive_google_drive_client_id' => '',
                'tinydrive_token' => '',
                'tinycomments_author' => 'author_name',
                'tinycomments_username' => 'user_name',
                'export_preset' => 'pdf',
                'export_advanced_options' => true,
                'export_fonts' => true,
                'export_images' => true,
                'export_font_formats' => 'pdf',
                'export_images_formats' => 'pdf',
                'automatic_uploads' => true,
            ],
        ],
    ],

    /**
     * this option will load optional language file based on you app locale
     * example:
     * languages => [
     *      'fa' => 'https://cdn.jsdelivr.net/npm/tinymce-i18n@25.8.4/langs7/fa.min.js',
     *      'es' => 'https://cdn.jsdelivr.net/npm/tinymce-i18n@25.8.4/langs7/es.min.js',
     *      'ja' => asset('assets/ja.min.js')
     * ].
     */
    'languages' => [],
    'direction' => 'rtl',
    'extra' => [
        'toolbar' => [
            // 'fontsize' => '10px 12px 13px 14px 16px 18px 20px',
            // 'fontfamily' => 'Tahoma=tahoma,arial,helvetica,sans-serif;',
        ],
    ],
];
