From 061b438f97e40baf03cc449eac2aa4f1de33b60b Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 12 Nov 2013 16:48:31 -0800 Subject: revert addeditortext changes for tinymce detection --- js/main.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'js/main.js') diff --git a/js/main.js b/js/main.js index a7421b312..22b2571d0 100644 --- a/js/main.js +++ b/js/main.js @@ -1044,16 +1044,15 @@ function chanviewFull() { addeditortext(data); } - function addeditortext(data) { - if(typeof tinyMCE !== "undefined") { - tinyMCE.execCommand('mceInsertRawHTML',false,data); - } - else { + if(plaintext == 'none') { var currentText = $("#profile-jot-text").val(); $("#profile-jot-text").val(currentText + data); } - } + else + tinyMCE.execCommand('mceInsertRawHTML',false,data); + } + function h2b(s) { var y = s; -- cgit v1.2.3