I am trying to set the readonly
parameter in tinyMCE to true
after tinyMCE has been initalized. I am trying to use this with wordpress to disable the postEditor if the post has already been published. I found some sources claiming that you can call:
tinyMCE.activeEditor.execCommand(
'mceSetAttribute',
false,
{name:'readonly',value:true}
);
but I have been having no luck with that and have not found a solution.