How can I implement a simple post editor?

You can use the Stackexchange Editor with the WP-Markdown Plugin, created by Steve Harris in this Question.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)