Feature #35742 » 0002-Adds-task-list-button-to-toolbar-for-CommonMark-form.patch
| public/javascripts/jstoolbar/common_mark.js | ||
|---|---|---|
|
}
|
||
|
}
|
||
|
// tl
|
||
|
jsToolBar.prototype.elements.tl = {
|
||
|
type: 'button',
|
||
|
title: 'Task list',
|
||
|
fn: {
|
||
|
wiki: function() {
|
||
|
this.encloseLineSelection('','',function(str) {
|
||
|
str = str.replace(/\r/g,'');
|
||
|
return str.replace(/(\n|^)[*-]?\s*/g,"$1* [ ] ");
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
// spacer
|
||
|
jsToolBar.prototype.elements.space3 = {type: 'space'}
|
||
| public/stylesheets/jstoolbar.css | ||
|---|---|---|
|
.jstb_ol {
|
||
|
background-image: url(../images/jstoolbar/bt_ol.png);
|
||
|
}
|
||
|
.jstb_tl {
|
||
|
background-image: url(../images/jstoolbar/bt_tl.png);
|
||
|
}
|
||
|
.jstb_bq {
|
||
|
background-image: url(../images/jstoolbar/bt_bq.png);
|
||
|
}
|
||