Aleksander Machniak
2014-05-01 89d6ce68463b92641946551b07ec49b023d56d90
program/js/app.js
@@ -3358,8 +3358,11 @@
  {
    this.stop_spellchecking();
    var flag = $('[name="_is_html"]');
    if (props.mode == 'html') {
      this.plain2html($('#'+props.id).val(), props.id);
      flag.val(1);
      tinymce.execCommand('mceAddEditor', false, props.id);
      if (this.env.default_font)
@@ -3376,6 +3379,8 @@
        }
        this.html2plain(existingHtml, props.id);
      }
      flag.val(0);
      tinymce.execCommand('mceRemoveEditor', false, props.id);
    }