<?php

return [
    /*
    |--------------------------------------------------------------------------
    | Profiles
    |--------------------------------------------------------------------------
    |
    | You can add as many as you want of profiles to use it in your application.
    |
    */

    'profiles' => [

        'default' => [
            'plugins' => 'advlist autoresize codesample directionality emoticons fullscreen hr image imagetools link lists media table toc wordcount code searchreplace visualblocks preview',
            'toolbar' => 'undo redo removeformat | formatselect fontsizeselect | bold italic underline strikethrough | rtl ltr | alignjustify alignright aligncenter alignleft | numlist bullist | forecolor backcolor | blockquote table toc hr | image link media codesample emoticons | searchreplace visualblocks code preview | wordcount fullscreen',
            'upload_directory' => 'articles',
            'custom_configs' => [
                'allow_html_in_named_anchor' => true,
                'link_default_target' => '_blank',
                'codesample_global_prismjs' => true,
                'image_advtab' => true,
                'code_dialog_width' => 800,
                'code_dialog_height' => 600,
                'height' => 400,
                'images_upload_url' => '/admin/upload',
                'automatic_uploads' => true,
            ]
        ],

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

        'template' => [
            'plugins' => 'autoresize template',
            'toolbar' => 'template',
            'upload_directory' => null,
        ],

        'full' => [
            'plugins' => 'advlist anchor autoresize codesample directionality emoticons fullscreen hr image imagetools link lists media nonbreaking pagebreak preview searchreplace table toc visualblocks visualchars wordcount code paste textcolor colorpicker',
            'toolbar' => 'undo redo | removeformat | formatselect fontsizeselect | bold italic underline strikethrough subscript superscript | forecolor backcolor | rtl ltr | alignjustify alignright aligncenter alignleft | numlist bullist outdent indent | blockquote hr nonbreaking pagebreak | table image media link anchor | codesample code | searchreplace visualblocks visualchars | toc | emoticons | preview fullscreen',
            'upload_directory' => 'articles/html',
            'custom_configs' => [
                'allow_html_in_named_anchor' => true,
                'link_default_target' => '_blank',
                'codesample_global_prismjs' => true,
                'image_advtab' => true,
                'code_dialog_width' => 1000,
                'code_dialog_height' => 700,
                'height' => 500,
                'paste_data_images' => true,
                'paste_as_text' => false,
                'paste_enable_default_filters' => true,
                'extended_valid_elements' => 'script[src|async|defer|type|charset]',
                'valid_children' => '+body[style]',
                'images_upload_url' => '/admin/upload',
                'automatic_uploads' => true,
            ]
        ],
        /*
        |--------------------------------------------------------------------------
        | Custom Configs
        |--------------------------------------------------------------------------
        |
        | If you want to add custom configurations to directly tinymce
        | You can use custom_configs key as an array
        |
        */

        /*
          'default' => [
            'plugins' => 'advlist autoresize codesample directionality emoticons fullscreen hr image imagetools link lists media table toc wordcount',
            'toolbar' => 'undo redo removeformat | formatselect fontsizeselect | bold italic | rtl ltr | alignjustify alignright aligncenter alignleft | numlist bullist | forecolor backcolor | blockquote table toc hr | image link media codesample emoticons | wordcount fullscreen',
            'custom_configs' => [
                'allow_html_in_named_anchor' => true,
                'link_default_target' => '_blank',
                'codesample_global_prismjs' => true,
                'image_advtab' => true,
                'image_class_list' => [
                  [
                    'title' => 'None',
                    'value' => '',
                  ],
                  [
                    'title' => 'Fluid',
                    'value' => 'img-fluid',
                  ],
              ],
            ]
        ],
        */

    ],

    /*
    |--------------------------------------------------------------------------
    | Templates
    |--------------------------------------------------------------------------
    |
    | You can add as many as you want of templates to use it in your application.
    |
    | https://www.tiny.cloud/docs/plugins/opensource/template/#templates
    |
    | ex: TinyEditor::make('content')->profiles('template')->template('example')
    */

    'templates' => [

        'example' => [
            // content
            ['title' => 'Some title 1', 'description' => 'Some desc 1', 'content' => 'My content'],
            // url
            ['title' => 'Some title 2', 'description' => 'Some desc 2', 'url' => 'http://localhost'],
        ],

    ],
];
