File: /home/armgroup/libs/storage/framework/views/8d9c88143bf799b72cbcf3aeacddf0bd0655ba34.php
<script>
var editor_config = {
path_absolute : "/",
selector: "textarea.tinymce",
plugins: [
"advlist autolink lists link image charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars code fullscreen",
"insertdatetime media nonbreaking save table directionality",
"emoticons template paste textpattern"
],
content_style:
"@import url('<?php echo e(asset('css/frontend-fonts.css')); ?>'); body { font-family: <?php echo e(config('frontend.font_family')); ?>; }",
font_formats:
"<?php echo e(config('frontend.font_family')); ?>=<?php echo e(config('frontend.font_family')); ?>; Andale Mono=andale mono,times; Arial=arial,helvetica,sans-serif; Arial Black=arial black,avant garde; Book Antiqua=book antiqua,palatino; Comic Sans MS=comic sans ms,sans-serif; Courier New=courier new,courier; Georgia=georgia,palatino; Helvetica=helvetica; Impact=impact,chicago; Symbol=symbol; Tahoma=tahoma,arial,helvetica,sans-serif; Terminal=terminal,monaco; Times New Roman=times new roman,times; Trebuchet MS=trebuchet ms,geneva; Verdana=verdana,geneva; Webdings=webdings; Wingdings=wingdings,zapf dingbats",
directionality: 'rtl',
toolbar: "insertfile undo redo | rtl ltr | styleselect | fontsizeselect | forecolor backcolor | fontselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image media",
fontsize_formats: '11px 12px 14px 16px 18px 24px 36px 48px',
relative_urls: false,
file_picker_callback : function(callback, value, meta) {
var x = window.innerWidth || document.documentElement.clientWidth || document.getElementsByTagName('body')[0].clientWidth;
var y = window.innerHeight|| document.documentElement.clientHeight|| document.getElementsByTagName('body')[0].clientHeight;
var cmsURL = editor_config.path_absolute + 'laravel-filemanager?editor=' + meta.fieldname;
if (meta.filetype == 'image') {
cmsURL = cmsURL + "&type=Images";
} else {
cmsURL = cmsURL + "&type=Files";
}
tinyMCE.activeEditor.windowManager.openUrl({
url : cmsURL,
title : 'Filemanager',
width : x * 0.8,
height : y * 0.8,
resizable : "yes",
close_previous : "no",
onMessage: (api, message) => {
callback(message.content);
}
});
},
language : 'fa_IR',
setup: function (editor) {
editor.on('init change', function () {
editor.save();
});
editor.on('change', function (e) {
window.livewire.find('<?php echo e($_instance->id); ?>').set('<?php echo e($variable); ?>', editor.getContent());
});
},
};
tinymce.init(editor_config);
</script>
<?php /**PATH /home/masomi/armshop/resources/views/livewire/admin/partials/tinymce.blade.php ENDPATH**/ ?>