diff --git a/view/js/main.js b/view/js/main.js index d3c7175d0..34d6bf475 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -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(); diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index 100dd15b9..ea68368aa 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -47,19 +47,19 @@