Skip to content

Commit aa8a456

Browse files
committed
color parsey fix
1 parent ca3f24e commit aa8a456

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WebItemEditor/webroot/js/webedititem.js

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ function appendText(previewObj, text) {
8888
case 'n': case 'N': underline = true; break;
8989
case 'o': case 'O': italic = true; break;
9090
case '#': if (i + 7 < text.length) { color = text.substring(i, i + 7); i += 6; resetFormat(); } break;
91+
case 'x': case 'X': if (i + 13 < text.length) { console.log("color " + text.substring(i + 1, i + 13).replaceAll('&', '')); color = "#" + text.substring(i + 1, i + 13).replaceAll('&', ''); i += 12; resetFormat(); } break;
9192
}
9293
}
9394
else {

0 commit comments

Comments
 (0)