identify multi-line input slots by the pilcrow symbol in the slot editor

pull/89/head
jmoenig 2019-02-04 09:04:58 +01:00
rodzic d92b37c629
commit 85c6a1ed38
2 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -38,6 +38,7 @@
### 2019-02-04
* BYOB: new experimental feature: special context-aware drop-down menus for custom blocks
* BYOB: identify multi-line input slots by the pilcrow symbol in the slot editor
### 2019-02-01
* BYOB: new experimental feature: special multi-line and monospaced input slot types

Wyświetl plik

@ -2604,11 +2604,15 @@ BlockLabelFragment.prototype.defTemplateSpecFragment = function () {
} else if (this.defaultValue) {
if (this.type === '%n') {
suff = ' # = ' + this.defaultValue.toString();
} else if (contains(['%mlt', '%code'], this.type)) {
suff = ' \u00B6 ' + this.defaultValue.toString(); // pilcrow
} else { // 'any' or 'text'
suff = ' = ' + this.defaultValue.toString();
}
} else if (this.type === '%n') {
suff = ' #';
} else if (contains(['%mlt', '%code'], this.type)) {
suff = ' \u00B6'; // pilcrow
}
return this.labelString + suff;
};