diff --git a/doc/BBCode.md b/doc/BBCode.md
index ea6fa8e2b7..9fb10d8e5f 100644
--- a/doc/BBCode.md
+++ b/doc/BBCode.md
@@ -376,8 +376,8 @@ code
[li] Second list element
[/ul]
[list]
- [*] First list element
- [*] Second list element
+ [li] First list element
+ [li] Second list element
[/list]
This is a paragraph
with a line feed.
Second Chapter
', - 'text' => "[h4]Header[/h4][ul][*]One[*]Two[/ul]\n\nThis is a paragraph\nwith a line feed.\n\nSecond Chapter", + 'text' => "[h4]Header[/h4][ul][li]One[li]Two[/ul]\n\nThis is a paragraph\nwith a line feed.\n\nSecond Chapter", ], 'task-12900-header-with-paragraphs' => [ 'expectedHTML' => 'Some Chapter
', @@ -271,11 +271,11 @@ Karl Marx - Die ursprüngliche Akkumulation ], 'bug-12842-ul-newlines' => [ 'expectedHTML' => 'This is:
This is:
Paragraph
New Paragraph
', diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index dc649084af..b6f82105e8 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -175,7 +175,7 @@ function listNewLineAutocomplete(id) { if (word != null) { var textBefore = text.value.substring(0, caretPos); var textAfter = text.value.substring(caretPos, text.length); - $('#' + id).val(textBefore + '\r\n[*] ' + textAfter).trigger('change'); + $('#' + id).val(textBefore + '\r\n[li] ' + textAfter).trigger('change'); setCaretPosition(text, caretPos + 5); return true; } @@ -384,7 +384,7 @@ function string2bb(element) { element = string2bb(element); if(open_elements.indexOf(element) < 0) { if(element === 'list' || element === 'ol' || element === 'ul') { - return ['\[' + element + '\]' + '\n\[*\] ', '\n\[/' + element + '\]']; + return ['\[' + element + '\]' + '\n\[li\] ', '\n\[/' + element + '\]']; } else if(element === 'table') { return ['\[' + element + '\]' + '\n\[tr\]', '\[/tr\]\n\[/' + element + '\]'];