tinyMCE.activeEditor.execCommand( 'mceSetAttribute',false,{name:'readonly',value:true} );
但我一直没有运气,还没有找到解决办法.
您可以做什么来防止用户在编辑器中编辑内容是将编辑器的可内容属性iframe body设置为false:
tinymce.activeEditor.getBody().setAttribute('contenteditable',false);