diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/images/bt_tl.png | bin | 0 -> 479 bytes | |||
-rw-r--r-- | public/javascripts/jstoolbar/common_mark.js | 14 | ||||
-rw-r--r-- | public/stylesheets/application.css | 7 | ||||
-rw-r--r-- | public/stylesheets/jstoolbar.css | 3 |
4 files changed, 24 insertions, 0 deletions
diff --git a/public/images/bt_tl.png b/public/images/bt_tl.png Binary files differnew file mode 100644 index 000000000..4bf58d1de --- /dev/null +++ b/public/images/bt_tl.png diff --git a/public/javascripts/jstoolbar/common_mark.js b/public/javascripts/jstoolbar/common_mark.js index a1b1fd599..8dae000df 100644 --- a/public/javascripts/jstoolbar/common_mark.js +++ b/public/javascripts/jstoolbar/common_mark.js @@ -132,6 +132,20 @@ jsToolBar.prototype.elements.ol = { } } +// 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'} diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index eddbd4b31..0ca4f48db 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -1314,6 +1314,13 @@ a.wiki-anchor:hover { color: #aaa !important; text-decoration: none; } h1:hover a.wiki-anchor, h2:hover a.wiki-anchor, h3:hover a.wiki-anchor, h4:hover a.wiki-anchor, h5:hover a.wiki-anchor, h6:hover a.wiki-anchor { display: inline; color: #ddd; } div.wiki img {vertical-align:middle; max-width:100%;} +div.wiki .task-list { + list-style-type: none; + padding-left: 0px; +} +div.wiki .task-list input.task-list-item-checkbox { + height: initial; +} /***** My page layout *****/ .block-receiver { diff --git a/public/stylesheets/jstoolbar.css b/public/stylesheets/jstoolbar.css index 5672e694c..911ae6678 100644 --- a/public/stylesheets/jstoolbar.css +++ b/public/stylesheets/jstoolbar.css @@ -128,6 +128,9 @@ .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); } |