X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fjot-header.tpl;h=d6b172b6af8c28e75af10cbf84ee2f2483cf3ac0;hb=638bbb2171b6d1dcd68f0d46359441afb848561d;hp=352c48647e04a0032609239b3a36a1d1b6210261;hpb=ad02af4e8fe88566ea6255af3fabac6393b1c916;p=friendica.git
diff --git a/view/jot-header.tpl b/view/jot-header.tpl
old mode 100644
new mode 100755
index 352c48647e..d6b172b6af
--- a/view/jot-header.tpl
+++ b/view/jot-header.tpl
@@ -3,15 +3,27 @@
var editor=false;
var textlen = 0;
+var plaintext = '$editselect';
function initEditor(cb){
if (editor==false){
- $("#profile-jot-text-loading").show();
- $("#jot-title-desc").show();
+ $("#profile-jot-text-loading").show();
+ if(plaintext == 'none') {
+ $("#profile-jot-text-loading").hide();
+ $("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
+ editor = true;
+ $("a#jot-perms-icon").fancybox({
+ 'transitionIn' : 'elastic',
+ 'transitionOut' : 'elastic'
+ });
+ $(".jothidden").show();
+ 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",
@@ -106,7 +118,7 @@ function enableOnUser(){
}
-
+