Fix: ijinkan upload video pada tinymce#1029
Merged
Merged
Conversation
|
🔄 AI PR Review sedang antri di server...
|
affandii06
added a commit
that referenced
this pull request
May 22, 2026
* Fix/detail statistik pangan tidak tampil (#989) * fix: data detail statistik tidak tampil * fix: perbaikan detail presisi statistik pangan * fix: perbaikan detail presisi statistik pangan * Tambahkan test * hapus * fix: tambahkan link detail untuk belum mengisi, jumlah dan total agar seragam * perbaikan judul * perbaikan filter tahun * [ci skip] memutahirkan catatan rilis --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * Feat: detail statistik presisi sandang (#1014) * fix: data detail statistik tidak tampil * fix: perbaikan detail presisi statistik pangan * fix: perbaikan detail presisi statistik pangan * Tambahkan test * hapus * fix: tambahkan link detail untuk belum mengisi, jumlah dan total agar seragam * feat: detail statistik sandang * perbaikan sesuai rekomendasi AI review * perbaiki test * perbaikan judul * perbaikan test * perbaikan filter tahun * [ci skip] memutahirkan catatan rilis --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * Merge Pull Request Feat: detail statistik papan (#1016) * simpan dulu * feat: detail presisi papan * tambahkan test * perbaikan mengikuti rekomendasi AI review * perbaikan filter tahun --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * Merge Pull Request From feat: detail statistik pendidikan (#1017) * feat: detail statistik pendidikan * perbaikan sesuai rekomendasi AI review * perbaikan test * perbaikan filter tahun * [ci skip] memutahirkan catatan rilis --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * Merge Pull Request From Feat: detail statistik ketenagakeerjaan (#1019) * simpan dulu * feat: detail statistik ketenagakerjaan * perbaikan filter tahun * perbaikan filter tahun * [ci skip] memutahirkan catatan rilis --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * Merge Pull Request From feat: detail statistik keagamaan (#1020) * feat: detail statistik keagamaan * [ci skip] memutahirkan catatan rilis --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * Merge Pull Request From fix: tinymce pada artikel (#1022) * fix: tinymce pada artikel * [ci skip] memutahirkan catatan rilis --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * Merge Pull Request From fix: error ketika halaman login menampilkan captcha (#1024) * fix: error ketika halaman login menampilkan captcha * [ci skip] memutahirkan catatan rilis --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * Merge Pull Request From Validasi kategori artikel ketika membuat artikel baru (#1027) * validasi kategori artikel ketika membuat artikel baru * [ci skip] memutahirkan catatan rilis --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * Merge Pull Request From Fix: ijinkan upload video pada tinymce (#1029) * fix: tinymce pada artikel * fix: ijinkan upload video pada tinymce * allow tag video * perbaikan config * upgrade versi tinymce * [ci skip] memutahirkan catatan rilis --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * Merge Pull Request From Perbaiki tekan enter di form kategori membuat refresh halaman (#1028) * perbaiki tekan enter membuat refresh halaman * sesuaikan label aksi tertukar di tabel kategori * perbaiki tombol simpan melalui cursor * [ci skip] memutahirkan catatan rilis --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * Merge Pull Request From Validasi kategori artikel ketika membuat artikel cms baru (#1035) * Validasi kategori artikel ketika membuat artikel cms baru * test * [ci skip] memutahirkan catatan rilis --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * Feat/detail statistik jaminan sosial (#1030) * feat: Detail statistik Jaminan Sosial * simpan dulu * [ci skip] memutahirkan catatan rilis --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * Merge Pull Request From feat: detail statistik kesehatan (#1034) * feat: detail kesehatan * [ci skip] memutahirkan catatan rilis --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * Merge Pull Request From feat: detail statistik seni (#1036) * feat: detail statistik seni * perbaikan judul * tambahkan judul * [ci skip] memutahirkan catatan rilis --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * Merge Pull Request From fix: gambar logo desa pada website desa aktif (#1038) * fix: gambar logo desa pada website desa aktif * fix: gambar logo desa pada website desa aktif * ikuti rekomendasi AI review * perbaiki test * [ci skip] memutahirkan catatan rilis --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * Merge Pull Request From fix: perbaikan tampilan website ketika slider belum diisi (#1040) * fix: perbaikan tampilan website ketika slider belum diisi * [ci skip] memutahirkan catatan rilis --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * Merge Pull Request From feat: datatable debounce (#1042) * feat: datatable debounce * [ci skip] memutahirkan catatan rilis --------- Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com> * rilis v2605.0.1 --------- Co-authored-by: ahmad afandi <ahmad.afandi85@gmail.com> Co-authored-by: Ahmad Affandi <caspianp98@yahoo.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description: Enable Media Embedding in TinyMCE Editor
Deskripsi Singkat
Perbaikan ini memungkinkan pengguna untuk menyisipkan dan menampilkan video (termasuk YouTube, Vimeo, dan file video lokal) di dalam editor TinyMCE tanpacontent yang disanitasi oleh HTMLPurifier. Sebelum perbaikan ini, tag
<iframe>dan<video>akan dihapus atau diblokir saat disimpan ke database.Perubahan yang Dilakukan
1. app/Policies/CustomCSPPolicy.php
Menambahkan Content Security Policy directive untuk
FRAMEagar browser mengizinkan embedding dari YouTube:2. config/file-manager.php
['mp4', 'mkv', 'mov']untuk upload video langsung ke file manager3. config/purifier.php (FILE BARU)
Konfigurasi HTMLPurifier untuk mengizinkan:
<iframe>dengan atribut:src,width,height,frameborder,allowfullscreen<video>dan<source>dengan atribut lengkap4. package.json & package-lock.json
Upgrade TinyMCE dari versi
^6.7.0ke^8.5.05. resources/views/partials/asset_tinymce.blade.php
license_key: 'gpl'(required untuk TinyMCE v8)skin: 'tinymce-5'menjadiskin: false(TinyMCE v8 tidak memerlukan skin bawaan)6. vite.config.js
Menambahkan path alias
@tinymceuntuk resolve modul TinyMCE7. public/build/assets/ & public/vendor/tinymce/
Build assets dan vendor files untuk TinyMCE v8
Alasan Perubahan
Masalah: Pengguna tidak dapat menyisipkan video dari YouTube atau upload video lokal karena:
<iframe>dan<video>Solusi:
Dampak Perubahan
Positif:
Hal yang perlu diperhatikan:
Steps to Reproduce
Testing Checklist
Related Issue
Screenshot / Video
simplescreenrecorder-2026-05-06_09.11.46.mp4