Make TinyMCE Disable or Readonly

Javascript

// TinyMce instance要全部Load完才能存取
$(window).load(function(){
    if (site != 'global') {
        $('.translable.global').each(function(){
            var $this = $(this);
            if($this.find('.mce-tinymce').length > 0){
                var field_name = $this.data('name');
                //tinymce.get(field_name).getBody().setAttribute('contenteditable', false);
                tinymce.get(field_name).setMode('readonly');
            }
        });
    }
});

Reference:

  1. https://stackoverflow.com/questions/13881812/make-readonly-disable-tinymce-textarea