jordandelozier / wysibb

WYSIWYG BBcode editor
http://www.wysibb.com
246 stars 86 forks source link

Non standart [list] bbcode #54

Open alexvaluyskiy opened 10 years ago

alexvaluyskiy commented 10 years ago

Many forums uses [list] bbcode like this

[list]
[*]one
[*]two
[list]

But wysibb uses a close tag, like this

[list]
[*]one[/*]
[*]two[/*]
[list]

I was trying to implement the standart way, but i failed. This bbcode doesn't work correctly

numlist : {
  title: CURLANG.numlist,
  buttonHTML: '<span class="fonticon ve-tlb-numlist1">\uE00a</span>',
  excmd: 'insertOrderedList',
  transform : {
    '<ol>{SELTEXT}</ol>':"[list=1]{SELTEXT}[/list]",
    '<li>{SELTEXT}</li>':"[*]{SELTEXT}"
  }
},
varun867 commented 9 years ago

Same here...can some one guide ? ravengerUA did you solve the issue? How do i implement standard List syntax for ordered and unordered lists?

Kindly help