diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-09 19:54:16 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-09 19:54:16 -0700 |
commit | db58b6223503a63f92cccddd87179ae8e3ae1e46 (patch) | |
tree | 935315e6f8ffa412eb6b091a98d34955efe5a09f /view/tpl/jot-header.tpl | |
parent | f3b560b4535594d1b1189a3d3a5b7070f8e96beb (diff) | |
download | volse-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/jot-header.tpl')
-rwxr-xr-x | view/tpl/jot-header.tpl | 3 |
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({ |