<?php
    
    $editor = new \Botble\Base\Supports\Editor();
    $editor->registerAssets();
    
    $attributes = Arr::set($attributes, 'class', Arr::get($attributes, 'class', 'form-control') . ' editor-' . setting('rich_editor', config('core.base.general.editor.primary')));
    
    $attributes['id'] = $name;
    $attributes['rows'] = 3;
    
?>

<?php echo Form::textarea($name, $value, $attributes); ?>


<?php $__env->startPush('scripts'); ?>
    <script>
        'use strict';

        var RV_MEDIA_URL = {
            base: '<?php echo e(url('')); ?>',
            filebrowserImageBrowseUrl: false,
            media_upload_from_editor: '<?php echo e(route('public.account.upload-from-editor')); ?>'
        }

        function setImageValue(file) {
            $('.mce-btn.mce-open').parent().find('.mce-textbox').val(file);
        }
    </script>
    <iframe
        id="form_target"
        name="form_target"
        style="display:none"
    ></iframe>
    <form
        id="tinymce_form"
        style="width:0; height:0; overflow:hidden; display: none;"
        action="<?php echo e(route('public.account.upload-from-editor')); ?>"
        target="form_target"
        method="post"
        enctype="multipart/form-data"
    >
        <?php echo csrf_field(); ?>
        <input
            id="upload_file"
            name="upload"
            type="file"
            onchange="$('#tinymce_form').submit();this.value='';"
        >
        <input
            name="upload_type"
            type="hidden"
            value="tinymce"
        >
    </form>
<?php $__env->stopPush(); ?>
<?php /**PATH /home/icloudcsin/public_html/tngamechanger/platform/plugins/job-board/resources/views/themes/dashboard/forms/partials/custom-editor.blade.php ENDPATH**/ ?>