Project

General

Profile

Feature #35742 » 0002-Adds-task-list-button-to-toolbar-for-CommonMark-form.patch

Marius BĂLTEANU, 2022-01-04 20:09

View differences:

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);
}
(3-3/5)