aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/jot-header.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl/jot-header.tpl')
-rwxr-xr-xview/tpl/jot-header.tpl7
1 files changed, 4 insertions, 3 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl
index eb7c5abdb..ce29443f7 100755
--- a/view/tpl/jot-header.tpl
+++ b/view/tpl/jot-header.tpl
@@ -299,12 +299,13 @@ function enableOnUser(){
function addeditortext(data) {
- if(plaintext == 'none') {
+ if(typeof tinyMCE !== "undefined") {
+ tinyMCE.execCommand('mceInsertRawHTML',false,data);
+ }
+ else {
var currentText = $("#profile-jot-text").val();
$("#profile-jot-text").val(currentText + data);
}
- else
- tinyMCE.execCommand('mceInsertRawHTML',false,data);
}
function h2b(s) {