Skip to content

Commit

Permalink
Fix some issues with the editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick committed Feb 7, 2015
1 parent de652f8 commit 42a4535
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/draw_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ function AddTag(type, tag) {
var after_txt = val.substring(Field.selectionEnd, val.length);
if (type == 'inline')
Field.value = before_txt + '[' + tag + ']' + selected_txt + '[/' + tag + ']' + after_txt;
elseif (type == 'list')
else if (type == 'list')
Field.value = before_txt + '[list]' + "\r" + '[*]' + selected_txt + '[/*]' + "\r" + '[/list]' + after_txt;
elseif (type == 'code')
else if (type == 'code')
Field.value = before_txt + '[' + tag + ']' + "\r" + '[[language]]' + "\r" + selected_txt + "\r" + '[/' + tag + ']' + after_txt;
elseif (type == 'emoji')
else if (type == 'emoji')
Field.value = before_txt + tag + after_txt;
}
</script>
Expand Down

0 comments on commit 42a4535

Please sign in to comment.