NodeBB / NodeBB/nodebb-plugin-composer-quill
Deleting the entire content of the editor switches Direction
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 19
- Forks
- 14
- Avg merge
- 1m
- Merged PRs (30d)
- 8
Description
Solution that works (for now):
quill.on('text-change', function () {
if (isEmpty(quill)) {
console.log('empty!!');
//quill.deleteText(0, quill.getLength());
//quill.setText('​');
textareaEl.val('');
return;
}
textareaEl.val(JSON.stringify(quill.getContents()));
textareaEl.trigger('change');
});
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the Quill text-change handler shown in the issue and reproduce deleting all editor content. Determine why the editor direction switches, then verify that deleting everything leaves the direction unchanged and preserves the expected empty textarea value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100