Improve editor configuration + fix charFormat for the empty text at startup.