JSFiddle - React, Tailwind, and code Playground
by Ali Uygur
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
<script src="https://cdn.quilljs.com/1.3.6/quill.js"></script>
<title>Quill ile TextArea</title>
<style>
#quillTextArea {
height: 500px; /* İstenilen yükseklik değerini buradan ayarlayabilirsiniz */
}
</style>
</head>
<body>
<textarea id="quillTextArea" style="display: none;"></textarea>
<div id="quillEditor"></div>
<script>
document.addEventListener("DOMContentLoaded", function () {
var quill = new Quill('#quillEditor', {
theme: 'snow',
placeholder: 'Buraya metin yazabilirsiniz...',
});
var quillTextArea = document.getElementById('quillTextArea');
quill.on('text-change', function () {
quillTextArea.value = quill.root.innerHTML;
});
});
</script>
</body>
</html>