X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fjot-header.tpl;h=02662d2d4b17ecec89712066ed164c11bf5e2717;hb=03171fd7deeb8e564478273ebdbee77eeab4a6cd;hp=4186ef78e2ffc422c8575b744d7879410e10802c;hpb=7f2070ca91aca9e92f3ac4c5b714742c6f9ecc3b;p=friendica.git
diff --git a/view/jot-header.tpl b/view/jot-header.tpl
old mode 100644
new mode 100755
index 4186ef78e2..02662d2d4b
--- a/view/jot-header.tpl
+++ b/view/jot-header.tpl
@@ -3,14 +3,27 @@
var editor=false;
var textlen = 0;
+var plaintext = '$editselect';
function initEditor(cb){
if (editor==false){
- $("#profile-jot-text-loading").show();
+ $("#profile-jot-text-loading").show();
+ if(plaintext == 'none') {
+ $("#profile-jot-text-loading").hide();
+ $("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
+ $(".jothidden").show();
+ editor = true;
+ $("a#jot-perms-icon").fancybox({
+ 'transitionIn' : 'elastic',
+ 'transitionOut' : 'elastic'
+ });
+ if (typeof cb!="undefined") cb();
+ return;
+ }
tinyMCE.init({
theme : "advanced",
mode : "specific_textareas",
- editor_selector: /(profile-jot-text|prvmail-text)/,
+ editor_selector: $editselect,
auto_focus: "profile-jot-text",
plugins : "bbcode,paste,autoresize",
theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
@@ -105,14 +118,17 @@ function enableOnUser(){
}
-
+