From 54438be7c2c402e4a897a2534f0f465dea5f068b Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 11 Nov 2013 17:50:36 -0800 Subject: make e2ee work on tinymce --- view/tpl/jot-header.tpl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'view/tpl/jot-header.tpl') 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) { -- cgit v1.2.3