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
132 132
  }
133 133
}
134 134

  
135
// tl
136
jsToolBar.prototype.elements.tl = {
137
  type: 'button',
138
  title: 'Task list',
139
  fn: {
140
    wiki: function() {
141
      this.encloseLineSelection('','',function(str) {
142
        str = str.replace(/\r/g,'');
143
        return str.replace(/(\n|^)[*-]?\s*/g,"$1* [ ] ");
144
      });
145
    }
146
  }
147
}
148

  
135 149
// spacer
136 150
jsToolBar.prototype.elements.space3 = {type: 'space'}
137 151

  
public/stylesheets/jstoolbar.css
128 128
.jstb_ol {
129 129
    background-image: url(../images/jstoolbar/bt_ol.png);
130 130
}
131
.jstb_tl {
132
    background-image: url(../images/jstoolbar/bt_tl.png);
133
}
131 134
.jstb_bq {
132 135
    background-image: url(../images/jstoolbar/bt_bq.png);
133 136
}
(3-3/5)