You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You could implement this as a contentEditable document and apply regex string replacements to innerHTML to create real HTML <input type=checkbox> checkboxes.
You must copy the checked property of each checkbox into its checked attribute so that persistence of the document's innerHTML captures the checkbox states.
Modifying innerHTML resets the cursor position. I haven't fixed this, so for the example you must move the cursor to the end every time you enter text.
The text was updated successfully, but these errors were encountered:
I had the same idea as @bburky and started to implement it, but it doesn't work yet.
Although, my version has/had another goal: inserting a checkbox after each line break / carriage return, so that you don't have to type the [ ] manually before each line. Maybe the text-only version could do that too @subzey ?
You could implement this as a
contentEditable
document and apply regex string replacements toinnerHTML
to create real HTML<input type=checkbox>
checkboxes.Example:
Issues:
checked
property of each checkbox into itschecked
attribute so that persistence of the document'sinnerHTML
captures the checkbox states.innerHTML
resets the cursor position. I haven't fixed this, so for the example you must move the cursor to the end every time you enter text.The text was updated successfully, but these errors were encountered: