The version of vichan running on lainchan.org
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

37 lignes
892B

  1. if (active_page === "thread" || active_page === "index" || active_page === "ukko") {
  2. $(document).on("ready", function() {
  3. if (window.Options && Options.get_tab('general')) {
  4. Options.extend_tab("general",
  5. "<fieldset><legend>Editor Dialog </legend>"
  6. + ("<label class='tinymcec' id='tinymce'><input type='checkbox' /> Enable TinyMCE WYSIWYG Editor</label>")
  7. + "</fieldset>");
  8. }
  9. $('.tinymcec').on('change', function(){
  10. var setting = $(this).attr('id');
  11. localStorage[setting] = $(this).children('input').is(':checked');
  12. location.reload();
  13. });
  14. if (!localStorage.tinymce) {
  15. localStorage.tinymce = 'false';
  16. }
  17. function getSetting(key) {
  18. return (localStorage[key] == 'true');
  19. }
  20. if (getSetting('tinymce')) $('#tinymce>input').prop('checked', 'checked');
  21. function inittinymce() {
  22. if (!getSetting("tinymce")) {return;}
  23. tinymce.init({
  24. selector: 'body'
  25. });
  26. }
  27. inittinymce();
  28. });
  29. }