bring our bbcode tools to private mail

This commit is contained in:
Mario Vavti
2015-10-05 12:26:04 +02:00
parent 95d6d2644f
commit 05050381d3
4 changed files with 77 additions and 24 deletions

View File

@@ -112,12 +112,12 @@ function insertbbcomment(comment, BBcode, id) {
return true;
}
function inserteditortag(BBcode) {
function inserteditortag(BBcode, id) {
// allow themes to override this
if(typeof(insertEditorFormatting) != 'undefined')
return(insertEditorFormatting(BBcode));
textarea = document.getElementById('profile-jot-text');
textarea = document.getElementById(id);
if (document.selection) {
textarea.focus();
selected = document.selection.createRange();