Text editors focus on what their name implies......text editing. Editors mainly deal with editing and reading source code. Editors have features such as syntax highlighting, cold folding, code formatting, linting etc.
IDEs or Integrated Development Environments on the other hand focus on developing software as a whole not just the source code. They provide an environment where developers deal with many aspects of software development. That means not only can you edit source code but you can also debug code, build and run code, test code, refactor code and much more.