aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-09 19:54:16 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-09 19:54:16 -0700
commitdb58b6223503a63f92cccddd87179ae8e3ae1e46 (patch)
tree935315e6f8ffa412eb6b091a98d34955efe5a09f /view/tpl
parentf3b560b4535594d1b1189a3d3a5b7070f8e96beb (diff)
downloadvolse-hubzilla-db58b6223503a63f92cccddd87179ae8e3ae1e46.tar.gz
volse-hubzilla-db58b6223503a63f92cccddd87179ae8e3ae1e46.tar.bz2
volse-hubzilla-db58b6223503a63f92cccddd87179ae8e3ae1e46.zip
don't auto-open the editor in forum mode. Save the forum selection text until we open it.
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/jot-header.tpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl
index 49369ab63..7e12c6bb3 100755
--- a/view/tpl/jot-header.tpl
+++ b/view/tpl/jot-header.tpl
@@ -3,6 +3,7 @@
var editor = false;
var textlen = 0;
var plaintext = '{{$editselect}}';
+var pretext = '{{$pretext}}';
function initEditor(cb){
if (editor==false){
@@ -21,6 +22,8 @@ function initEditor(cb){
});
$(".jothidden").show();
if (typeof cb!="undefined") cb();
+ if(pretext.length)
+ addeditortext(pretext);
return;
}
tinyMCE.init({