Is it a good idea to make a text editor out of html table

I would like to program a text editor that is simple, easy to understand, easy to change and maybe somewhat efficient. Is it a good idea to use html table as a base instead of:

  • textarea tag
  • contenteditable attribute
  • input tag

What would you do?

No (unless it’s part of the interface for a simple spreadsheet editor?? Even then you’d need text inputs for every cell, and an HTML table is not the easiest thing to work with so it would be easier to not use an HTML table for the UI), HTML tables are for tabular data. It seems a slightly bizarre thing to base it on: the other three things you mentioned are all text input elements, a table is in no way an input element.