Heera/public/assets/js/pages/project-create.init.js
2024-05-16 09:31:08 +05:45

1 line
669 B
JavaScript

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"}));