Rich Editor
Editor teks kaya (Quill 1.3.7).
Kapan dipakai: Isi panjang berformat, mis. pengumuman. Nilai HTML dikirim lewat input hidden bernama sesuai name.
12:055G ▮▮▮
MacBook Air
Kode
<form>
<x-rich-editor name="content" value="<p>Isi <strong>awal</strong> pengumuman.</p>" :height="200" />
</form>
File yang dibawa ke project
resources/views/components/rich-editor.blade.phpQuill 1.3.7 (dimuat komponen dari CDN)
Props
| Nama | Tipe | Default | Keterangan |
|---|---|---|---|
name | string | content | |
value | string | '' | HTML awal |
placeholder | string | Tulis isi pengumuman... | |
height | int | 360 | Tinggi minimum (px) |