Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: maximus23 on February 05, 2019, 12:09:26 PM

Title: [2.1 RC1] Bug Editor (syntax error)
Post by: maximus23 on February 05, 2019, 12:09:26 PM
Hello,

Last update 2.1 RC1

Please check the code error :

File : Themes\default\scripts\jquery.sceditor.smf.js

Search:

sceditor.formats.bbcode.set(
'li', {
tags: {
li: null
},
isInline: false,
closedBy: ['/ul', '/ol', '/list', 'li', '*', '@', '+', 'x', '#', 'o', 'O', '0'],
format: '[li]{0}[/li]',
html: '<li>{0}</li>'
},
);


and replace by:

sceditor.formats.bbcode.set(
'li', {
tags: {
li: null
},
isInline: false,
closedBy: ['/ul', '/ol', '/list', 'li', '*', '@', '+', 'x', '#', 'o', 'O', '0'],
format: '[li]{0}[/li]',
html: '<li>{0}</li>',
}
);


:)
Title: Re: [2.1 RC1] Bug Editor (syntax error)
Post by: albertlast on February 05, 2019, 12:21:33 PM
pr: https://github.com/SimpleMachines/SMF2.1/pull/5386
Title: Re: [2.1 RC1] Bug Editor (syntax error)
Post by: GravuTrad on February 05, 2019, 12:57:11 PM
Thanks maximus.