<script>
    $('textarea.rich').froalaEditor({
            height: '{{$height ?? 500}}',
            toolbarSticky: false,
            quickInsertButtons: ['table', 'ul', 'ol', 'hr'],
            // ['imageBack', '|', 'imageUpload', 'imageByURL', 'imageManager']
                @if (!empty($can_browse_photos))
                imageManagerLoadURL: '{{route("admin.{$item->getTable()}.photos", $item)}}',
                @endif
                imageInsertButtons: ['imageBack', '|', 'imageByURL', '{{!empty($can_browse_photos) ? 'imageManager' : ''}}'],
            imageUploadRemoteUrls: false,
            imagePaste: false,
            entities: '',
            pastePlain: true,
            imageDefaultWidth: 300,
            videoInsertButtons: ['videoBack', '|', 'videoByURL'],
            videoUploadRemoteUrls: false,
            fileUpload: false,
                {{--    iframe: true,--}}
                        {{--iframeStyleFiles: ['{{asset('assets/site/styles/stylesheets/main.css')}}'],--}}
                htmlAllowedEmptyTags: ['span', 'font', 'div', 'textarea', 'a', 'iframe', 'object', 'video', 'style', 'script', '.fa', '.fr-emoticon', '.fr-inner', 'path', 'line', 'hr'],
            // toolbarButtons: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', '|', 'fontFamily', 'fontSize', 'color', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', '-', 'insertLink', 'insertImage', 'insertVideo', 'embedly', 'insertTable', '|', 'emoticons', 'specialCharacters', 'insertHR', 'selectAll', 'clearFormatting', '|', 'print', 'spellChecker', 'help', 'html', '|', 'undo', 'redo'],
            toolbarButtons: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', '|', 'fontFamily', 'fontSize', 'color', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', '-', 'insertLink', 'insertImage', 'insertVideo', 'embedly', 'insertTable', '|', 'insertHR', 'clearFormatting', '|', 'html', '|', 'undo', 'redo'],
        }
    );
</script>
<style>
    .fr-code {
        overflow: scroll !important;
    }
</style>