improved how Tinymce is initiated and works with Filemanager::attachments