Re-implemented append and insert in styled editor and made meaningful tests.