Skip to content

Commit

Permalink
Support task list in toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
GokulNC committed Nov 13, 2020
1 parent e9e88b0 commit cceb503
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@
font-size: 18px;
}

/* To strike the checked items */
.ql-editor ul[data-checked="true"] li {
text-decoration: line-through;
}

</style>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ var toolbarOptions = {
['link', 'blockquote', 'code-block'],
['image', 'video'],

[{ 'list': 'ordered'}, { 'list': 'bullet' }],
[{ 'list': 'ordered'}, { 'list': 'bullet' }, { 'list': 'check' }],
[{ 'script': 'sub'}, { 'script': 'super' }], // superscript/subscript
[{ 'indent': '-1'}, { 'indent': '+1' }], // outdent/indent
[{ 'direction': 'rtl' }], // text direction
Expand Down

0 comments on commit cceb503

Please sign in to comment.