aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-11 17:50:36 -0800
committerfriendica <info@friendica.com>2013-11-11 17:50:36 -0800
commit54438be7c2c402e4a897a2534f0f465dea5f068b (patch)
tree21f1dbf5dc93dc18c5693902d66e4615f16f45ee /view
parentd9013f43110a6474a8e52b72492bc490d50b7972 (diff)
downloadvolse-hubzilla-54438be7c2c402e4a897a2534f0f465dea5f068b.tar.gz
volse-hubzilla-54438be7c2c402e4a897a2534f0f465dea5f068b.tar.bz2
volse-hubzilla-54438be7c2c402e4a897a2534f0f465dea5f068b.zip
make e2ee work on tinymce
Diffstat (limited to 'view')
-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) {