Skip to content

Commit e3be15e

Browse files
committed
Added task list to default sample html code.
1 parent 6bd0ee0 commit e3be15e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/src/main/kotlin/org/wordpress/aztec/demo/MainActivity.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ import org.wordpress.aztec.plugins.wpcomments.toolbar.PageToolbarButton
5959
import org.wordpress.aztec.source.SourceViewEditText
6060
import org.wordpress.aztec.toolbar.AztecToolbar
6161
import org.wordpress.aztec.toolbar.IAztecToolbarClickListener
62+
import org.wordpress.aztec.toolbar.ToolbarAction
63+
import org.wordpress.aztec.toolbar.ToolbarItems
6264
import org.wordpress.aztec.util.AztecLog
6365
import org.xml.sax.Attributes
6466
import java.io.File
@@ -90,6 +92,10 @@ open class MainActivity : AppCompatActivity(),
9092
private val UNDERLINE = "<u style=\"color:lime\">Underline</u><br>"
9193
private val STRIKETHROUGH = "<s style=\"color:#ff666666\" class=\"test\">Strikethrough</s><br>" // <s> or <strike> or <del>
9294
private val ORDERED = "<ol style=\"color:green\"><li>Ordered</li><li>should have color</li></ol>"
95+
private val TASK_LIST = "<ul type=\"task-list\">\n" +
96+
" <li><input type=\"checkbox\" class=\"task-list-item-checkbox\">Unchecked</li>\n" +
97+
" <li><input type=\"checkbox\" class=\"task-list-item-checkbox\" checked>Checked</li>\n" +
98+
"</ul>"
9399
private val ORDERED_WITH_START = "<h4>Start in 10 List:</h4>" +
94100
"<ol start=\"10\">\n" +
95101
" <li>Ten</li>\n" +
@@ -186,6 +192,7 @@ open class MainActivity : AppCompatActivity(),
186192
ITALIC +
187193
UNDERLINE +
188194
STRIKETHROUGH +
195+
TASK_LIST +
189196
ORDERED +
190197
ORDERED_WITH_START +
191198
ORDERED_REVERSED +

0 commit comments

Comments
 (0)