2024-01-25 17:37:49 +07:00
|
|
|
<script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
|
2025-02-11 16:22:18 +07:00
|
|
|
<script src="{{ 'RowExpand.js' | asset_url }}"></script>
|
2024-01-25 17:37:49 +07:00
|
|
|
|
2025-12-02 17:01:37 +07:00
|
|
|
<link href="https://unpkg.com/filepond/dist/filepond.min.css" rel="stylesheet" />
|
|
|
|
|
<link href="https://unpkg.com/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.min.css"
|
|
|
|
|
rel="stylesheet" />
|
|
|
|
|
|
|
|
|
|
<script src="https://unpkg.com/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.min.js"></script>
|
|
|
|
|
<script src="https://unpkg.com/filepond/dist/filepond.min.js"></script>
|
|
|
|
|
|
2024-01-25 17:37:49 +07:00
|
|
|
|
|
|
|
|
<script>
|
2025-12-02 17:01:37 +07:00
|
|
|
// Quan trọng: đăng ký plugin
|
|
|
|
|
FilePond.registerPlugin(FilePondPluginImagePreview);
|
|
|
|
|
|
2025-12-04 13:47:17 +07:00
|
|
|
FilePond.create(document.querySelector("#image-preview-filepond"), {
|
|
|
|
|
credits: false,
|
|
|
|
|
allowImageCrop: false,
|
|
|
|
|
allowImagePreview: false,
|
|
|
|
|
allowMultiple: true,
|
|
|
|
|
labelIdle: 'Kéo thả ảnh hoặc <span class="filepond--label-action">Chọn ảnh</span>',
|
|
|
|
|
})
|
2025-12-02 17:01:37 +07:00
|
|
|
|
2025-12-10 08:37:47 +07:00
|
|
|
FilePond.create(document.querySelector("#image-category-icon"), {
|
|
|
|
|
credits: false,
|
|
|
|
|
allowImageCrop: false,
|
|
|
|
|
allowImagePreview: false,
|
|
|
|
|
allowMultiple: true,
|
|
|
|
|
labelIdle: 'Kéo thả ảnh hoặc <span class="filepond--label-action">Chọn ảnh</span>',
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FilePond.create(document.querySelector("#image-category-avatar"), {
|
|
|
|
|
credits: false,
|
|
|
|
|
allowImageCrop: false,
|
|
|
|
|
allowImagePreview: false,
|
|
|
|
|
allowMultiple: true,
|
|
|
|
|
labelIdle: 'Kéo thả ảnh hoặc <span class="filepond--label-action">Chọn ảnh</span>',
|
|
|
|
|
})
|
2024-01-25 17:37:49 +07:00
|
|
|
|
2025-12-10 08:37:47 +07:00
|
|
|
FilePond.create(document.querySelector("#image-brand"), {
|
|
|
|
|
credits: false,
|
|
|
|
|
allowImageCrop: false,
|
|
|
|
|
allowImagePreview: false,
|
|
|
|
|
allowMultiple: true,
|
|
|
|
|
labelIdle: 'Kéo thả ảnh hoặc <span class="filepond--label-action">Chọn ảnh</span>',
|
|
|
|
|
})
|
2025-12-04 17:20:42 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-25 17:37:49 +07:00
|
|
|
tinymce.init({
|
|
|
|
|
selector: 'textarea#product-desc',
|
|
|
|
|
height: 350,
|
|
|
|
|
menubar: true,
|
|
|
|
|
plugins: [
|
|
|
|
|
'advlist autolink lists link image charmap print preview anchor',
|
|
|
|
|
'searchreplace visualblocks code fullscreen',
|
|
|
|
|
'insertdatetime media table paste code help wordcount'
|
|
|
|
|
],
|
|
|
|
|
toolbar: 'undo redo | formatselect | ' +
|
|
|
|
|
'bold italic backcolor | alignleft aligncenter ' +
|
|
|
|
|
'alignright alignjustify | bullist numlist outdent indent | ' +
|
|
|
|
|
'removeformat | help',
|
|
|
|
|
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
2024-02-27 13:31:27 +07:00
|
|
|
tinymce.init({
|
|
|
|
|
selector: 'textarea#product-static',
|
|
|
|
|
height: 350,
|
|
|
|
|
menubar: true,
|
|
|
|
|
plugins: [
|
|
|
|
|
'advlist autolink lists link image charmap print preview anchor',
|
|
|
|
|
'searchreplace visualblocks code fullscreen',
|
|
|
|
|
'insertdatetime media table paste code help wordcount'
|
|
|
|
|
],
|
|
|
|
|
toolbar: 'undo redo | formatselect | ' +
|
|
|
|
|
'bold italic backcolor | alignleft aligncenter ' +
|
|
|
|
|
'alignright alignjustify | bullist numlist outdent indent | ' +
|
|
|
|
|
'removeformat | help',
|
|
|
|
|
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
|
|
|
|
|
});
|
|
|
|
|
|
2024-01-25 17:37:49 +07:00
|
|
|
|
|
|
|
|
</script>
|