fixing bug in case tinymce is disabled