Fix [big] and [sub]

This commit is contained in:
Mr. Stallion 2019-12-07 09:22:49 -06:00
parent 10ce9a83c8
commit dab83dbc14
2 changed files with 3 additions and 1 deletions

View File

@ -61,6 +61,7 @@ export class CoreBBCodeParser extends BBCodeParser {
this.addTag(new BBCodeSimpleTag('s', 'del'));
this.addTag(new BBCodeSimpleTag('noparse', 'span', [], []));
this.addTag(new BBCodeSimpleTag('sub', 'sub', [], ['b', 'i', 'u', 's', 'color']));
this.addTag(new BBCodeSimpleTag('big', 'span', ['bigText'], ['b', 'i', 'u', 's', 'color']));
this.addTag(new BBCodeSimpleTag('sup', 'sup', [], ['b', 'i', 'u', 's', 'color']));
this.addTag(new BBCodeCustomTag('color', (parser, parent, param) => {
const cregex = /^(red|blue|white|yellow|pink|gray|green|orange|purple|black|brown|cyan)$/;

View File

@ -56,8 +56,9 @@ export class StandardBBCodeParser extends CoreBBCodeParser {
this.addTag(new BBCodeSimpleTag('justify', 'span', ['justifyText']));
this.addTag(new BBCodeSimpleTag('big', 'span', ['bigText'], ['url', 'i', 'u', 'b', 'color', 's']));
this.addTag(new BBCodeSimpleTag('small', 'span', ['smallText'], ['url', 'i', 'u', 'b', 'color', 's']));
this.addTag(new BBCodeSimpleTag('sub', 'span', ['smallText'], ['url', 'i', 'u', 'b', 'color', 's']));
this.addTag(new BBCodeSimpleTag('indent', 'div', ['indentText']));
this.addTag(new BBCodeSimpleTag('heading', 'h2', [], ['url', 'i', 'u', 'b', 'color', 's']));
this.addTag(new BBCodeSimpleTag('heading', 'h2', [], ['url', 'i', 'u', 'b', 'color', 's', 'big', 'sub']));
this.addTag(new BBCodeSimpleTag('row', 'div', ['row']));
this.addTag(new BBCodeCustomTag('col', (parser, parent, param) => {
const col = parser.createElement('div');