revert addeditortext changes for tinymce detection

This commit is contained in:
friendica 2013-11-12 16:48:31 -08:00
parent ac7292489c
commit 061b438f97

View File

@ -1044,16 +1044,15 @@ function chanviewFull() {
addeditortext(data); addeditortext(data);
} }
function addeditortext(data) { function addeditortext(data) {
if(typeof tinyMCE !== "undefined") { if(plaintext == 'none') {
tinyMCE.execCommand('mceInsertRawHTML',false,data);
}
else {
var currentText = $("#profile-jot-text").val(); var currentText = $("#profile-jot-text").val();
$("#profile-jot-text").val(currentText + data); $("#profile-jot-text").val(currentText + data);
} }
} else
tinyMCE.execCommand('mceInsertRawHTML',false,data);
}
function h2b(s) { function h2b(s) {
var y = s; var y = s;