Fix [big] and [sub]
This commit is contained in:
parent
10ce9a83c8
commit
dab83dbc14
|
@ -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)$/;
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue