includes/clientside/static/editor.js
changeset 397 06415d243d09
parent 387 92664d2efab8
child 399 a3a9e463c62f
equal deleted inserted replaced
396:3289e4dcb4b8 397:06415d243d09
   106   }
   106   }
   107   
   107   
   108   //
   108   //
   109   // BUILD EDITOR
   109   // BUILD EDITOR
   110   //
   110   //
       
   111   
       
   112   var heading = document.createElement('h3');
       
   113   heading.appendChild(document.createTextNode($lang.get('editor_msg_editor_heading')));
   111   
   114   
   112   // Plaintext/wikitext toggler
   115   // Plaintext/wikitext toggler
   113   // Only build the editor if using TinyMCE is allowed. THIS IS WEAK
   116   // Only build the editor if using TinyMCE is allowed. THIS IS WEAK
   114   // AND CANNOT BE MADE ANY STRONGER.
   117   // AND CANNOT BE MADE ANY STRONGER.
   115   
   118   
   367     en_div.className = 'usermessage';
   370     en_div.className = 'usermessage';
   368     en_div.style.margin = '10px 0 0 0';
   371     en_div.style.margin = '10px 0 0 0';
   369   }
   372   }
   370   
   373   
   371   // Put it all together...
   374   // Put it all together...
       
   375   form.appendChild(heading);
   372   if ( allow_wysiwyg )
   376   if ( allow_wysiwyg )
   373     form.appendChild(toggler);
   377     form.appendChild(toggler);
   374   form.appendChild(preview_anchor);
   378   form.appendChild(preview_anchor);
   375   form.appendChild(preview_container);
   379   form.appendChild(preview_container);
   376   form.appendChild(ta_wrapper);
   380   form.appendChild(ta_wrapper);