TanchoToplineCargo/public/assets/js/pages/project-create.init.js

1 line
669 B
JavaScript
Raw Normal View History

2024-05-05 04:47:49 +00:00
var previewTemplate,dropzone,ckeditorClassic=document.querySelector("#ckeditor-classic"),dropzonePreviewNode=(ckeditorClassic&&ClassicEditor.create(document.querySelector("#ckeditor-classic")).then(function(e){e.ui.view.editable.element.style.height="200px"}).catch(function(e){console.error(e)}),document.querySelector("#dropzone-preview-list"));dropzonePreviewNode&&(dropzonePreviewNode.id="",previewTemplate=dropzonePreviewNode.parentNode.innerHTML,dropzonePreviewNode.parentNode.removeChild(dropzonePreviewNode),dropzone=new Dropzone(".dropzone",{url:"https://httpbin.org/post",method:"post",previewTemplate:previewTemplate,previewsContainer:"#dropzone-preview"}));