Project

General

Profile

Feature #1575 » 0003-IE11-support.patch

Mizuki ISHIKAWA, 2020-02-26 03:19

View differences:

public/javascripts/jstoolbar/markdown.js
wiki: function() {
var This = this;
this.tableMenu(function(cols, rowCount){
This.encloseLineSelection(('|'+cols.join(' |')+' |\n') + ('|--'.repeat(cols.length)+'|\n') + (('| '.repeat(cols.length))+'|\n').repeat(rowCount));
This.encloseLineSelection(
'|'+cols.join(' |')+' |\n' + // header
Array(cols.length+1).join('|--')+'|\n' + // second line
Array(rowCount+1).join(Array(cols.length+1).join('| ')+'|\n') // cells
);
});
}
}
public/javascripts/jstoolbar/textile.js
wiki: function() {
var This = this;
this.tableMenu(function(cols, rowCount){
This.encloseLineSelection(('|_.'+cols.join('|_.')+'|\n') + (('| '.repeat(cols.length))+'|\n').repeat(rowCount));
This.encloseLineSelection(
'|_.'+cols.join('|_.')+'|\n' + // header
Array(rowCount+1).join(Array(cols.length+1).join('| ')+'|\n') // cells
);
});
}
}
(10-10/12)