revert addeditortext changes for tinymce detection
This commit is contained in:
parent
ac7292489c
commit
061b438f97
11
js/main.js
11
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;
|
||||
|
Reference in New Issue
Block a user