refactored version control logic to be handled by action_hook instead of inside tinymce init