I am using quill rich text editor to generate rich text text area in html. But problem is that i was not able to set any text to rich text using quill setText method. Anyone can advice me whats wrong i am doing here? why setText is not working?
Html:
<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>
<div class="form-group">
<label for="Description">Article:</label>
<textarea class="form-control" id="Article" rows="6"></textarea>
</div>
Quill script:
<script>
var quill = new Quill('#Article', {
theme: 'snow',
});
quill.setText('Hello\n');
</script>