What version of Roundcube are you running and what version of TinyMCE (have a look at the header in [rc root]/program/js/tinymce/tinymce.min.js)? With Roundcube 1.5 TinyMCE was updated to version 5 and that added the `registry` object mentioned as missing in your error message.