Rendering changes.
This commit is contained in:
@@ -1244,6 +1244,10 @@ function quotePreviewFmt(fmt, ent) {
|
|||||||
case 'EX':
|
case 'EX':
|
||||||
// Make it an icon.
|
// Make it an icon.
|
||||||
new_fmt.tp = null;
|
new_fmt.tp = null;
|
||||||
|
if (new_fmt.at == -1) {
|
||||||
|
// Render it normally.
|
||||||
|
new_fmt.at = 0;
|
||||||
|
}
|
||||||
return [new_fmt, {tp: 'IC', data: { orig: 'EX', iconName: 'attachment'}}];
|
return [new_fmt, {tp: 'IC', data: { orig: 'EX', iconName: 'attachment'}}];
|
||||||
case 'QQ':
|
case 'QQ':
|
||||||
// Quote/citation.
|
// Quote/citation.
|
||||||
@@ -1318,8 +1322,8 @@ function draftyFormatter(style, data, values, key) {
|
|||||||
break;
|
break;
|
||||||
case 'MN':
|
case 'MN':
|
||||||
// Mention
|
// Mention
|
||||||
if (data && data.hasOwnProperty('color')) {
|
if (data && data.hasOwnProperty('colorId')) {
|
||||||
attr.className = 'mn-dark-color' + data.color;
|
attr.className = 'mn-dark-color' + data.colorId;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'FM':
|
case 'FM':
|
||||||
|
|||||||
Reference in New Issue
Block a user