In tinyMCE api, there is only a mode setting. For example:

editor.setMode('readonly'); 

and how to get its current state?

    1 answer 1

    He found the answer in sorts:

     let currentMode = editor.readonly;