code: function (state) {
          var me = this;
          var ed = tinymce.get(me.getInputId());
          if (!ed) { return; }
  
          tinymce.each(ed.controlManager.controls, function (c) {
              c.setDisabled(!state);
          });
      }
docs: -----------------------------------------------------------------